json
{
source => "message"
}
split {
field => "data"
}
date {
match => ["[data][currentDate]", "yyyy-MM-dd HH:mm:ss"]
target => "@timestamp"
}
ruby {
code => "
event['data'].each {|k, v|
event[k] = v
}
event.remove('data')
"
}
This was used earlier in logstash 1.5 to split key value pair from a field called "data". Currently we need to migrate to logstash 6.8.0, Could someone help me for this?
Currently i'm using the below ruby code, it is not working properly
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.