Hi,
My input is elasticsearch and I want to output to csv.
A date field by default is outputted as - 2017-08-11T18:50:42.000-07:100.
I want it to output as 08/11/2017 06:50 PM
My current conf file -
input {
elasticsearch {
hosts => "localhost:9200"
index => "perfectorder"
query => '
{
"query": {
"bool": { "must": [ { "term": {"_type": "Order"} } ]
}
}
}'
}
}
}
output {
csv {
fields => ["[Order][EID]","[Order][Status]","[Order][ShipmentMethod]","[Order][ReleaseDate]","[Order][ShipDate]","[Order][DeliveryDate]","[Order][CycleTime]"]
path => "E:\ES\logstash-5.5.0\config\perfectorder.search.gci.sla.order_export.csv"
}
}