Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indexing and Parsing XML files with ElasticSearch

I need to index multiple XML files under multiple directories into ElasticSearch and parse them into JSON format, possibly adding some tags. Is it possible to be done with ElastichSearch and Logstash, and if so how can I do it?
Thank you!

like image 842
Candan Avatar asked Dec 20 '25 03:12

Candan


1 Answers

It is possible. Point logstash to your XML files and use tagging to tag different files differently to determine how they will be handled by Logstash down the road. Inside of Logstash, you can set up filters to add tags, and other fields, and in the output portion of logstash you can specify what files gets added to what index inside of elasticsearch

like image 135
krinker Avatar answered Dec 21 '25 22:12

krinker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!