I am trying to consume this in Logstash and send the resulting events/documents to elasticsearch. The overall functionality works but what I want is to generate 4 events /documents from each row like this:
My csv filter currently looks like this:
filter {
csv {
columns => ["item","category","type","q1","q2", "q3", "q4"]
add_field => {
"quarter" => "q1"
"amount" => "%{q1}"
}
}
}
But what I am missing is a way to generate 4 events from one single row. Is this possible? And is there another filter that I have to use to accomplish this? I am new to Logstash and any help is greatly appreciated.
to that and it would do pretty much what you want. But looking at a filter that ugly might make your eyes bleed Probably also need to mutate / remove_field some stuff.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.