Hi,
I am trying to index big xml file.
Below is my xml file.
input {
file {
path => "/Users/srini/Downloads/imp/2016-01-27/*.xml"
start_position => "beginning"
}
}
filter {
xml {
source => "message"
target => "xmldata"
store_xml => "false"
add_tag => [ "foo_%{somefield}" ]
}
}
output {
elasticsearch {
action => "index"
hosts => "127.0.0.1"
index => "srini2"
}
stdout { codec => json }
}
I have nested data.
The data when i searched in elasticsearch, it is indexing each line.
How can i make sure,
- Is there any mistake with my logstash config file.?
- index whole file instead of line. ?
Thank You,
Regards,
Srini.