Hi,
in my infrastructure I have something like:
Filebeat -> Kafka -> Logstash -> Elasticsearch
I'm having problems reading the custom fields set up in Filebeat when filtering in Logstash.
I configured the kafka input in Logstash, I'd like to be able to read content of "my_custom_field", but I'm unable to...
{
"message" : {
"@timestamp":"2017-02-22T17:13:22.346Z",
"beat":{
"hostname":"host-01",
"name":"name-01",
"version":"5.2.1"},
"fields":{
"my_custom_field":"XXXXX"
},
"input_type":"log",
"message":"....................",
"offset":6894303,
"source":"...",
"type":"log"
}
}
How can I access this field in order to create my index name (output) using it?