Hello Team
I am using Elasticsearch version 7.8.0 and Logstash version 7.8.0
I am having ES Index having following mappings :
"mappings" : {
"properties" : {
"appEvents" : {
"properties" : {
"attribute" : {
"properties" : {
"filesPendingForUpload" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"filesUploadedSinceLastEvent" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"launch" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
Now i want to extract the data from ES Index to CSV file using logstash.
In logstash conf file I have specified
output {
csv {
fields => ["[appEvents][attribute][filesPendingForUpload]"]
path => "/tmp/exp.csv"
}
}
But I am not getting respective field data in csv.
As per my understanding, I am not writing fields in proper format...
Could you please help me in getting data into csv.
Thank You.