Open spacepatcher opened 6 years ago
I was able to cope with the situation using this ruby code in my logstash.conf
:
ruby {
code => "
event.get('[enrich][fia_nested]').each_index { |i|
event.set('[enrich][fia]['+i.to_s+'][feed_name]', event.get('[enrich][fia_nested]['+i.to_s+'][feed_name]'))
event.set('[enrich][fia]['+i.to_s+'][first_seen]', event.get('[enrich][fia_nested]['+i.to_s+'][first_seen]'))
event.set('[enrich][fia]['+i.to_s+'][last_added]', event.get('[enrich][fia_nested]['+i.to_s+'][last_added]'))
}
"
}
I use your plugin to enrich events with data from external reputation database. My goal is to process the enriched data from my external database with JDBC support using visualization in Kibana.
There is a key snippet from my
logstash.conf
:After Logstash processing I get enriched data with such structure in Elasticsearch:
The restriction of Kibana does not allow properly processing nested objects. (https://www.elastic.co/guide/en/kibana/current/nested-objects.html).
How can I manage the result data structure using you plugin?