What I ended up with now is:
if [@metadata][beat] == "filebeat" {
ruby {
code => "event.set('logstash_processed_at', Time.now());"
}
}
Found it here: Add current timestamp to a logstash_processed_at field
What I ended up with now is:
if [@metadata][beat] == "filebeat" {
ruby {
code => "event.set('logstash_processed_at', Time.now());"
}
}
Found it here: Add current timestamp to a logstash_processed_at field
© 2020. All Rights Reserved - Elasticsearch
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.