online
(K. P.)
August 16, 2021, 8:00am
2
Please note, the above config file is for Logstash.
I found a similar issue under the below thread.
Hello,
I have an elasticsearch output working without any problem
elasticsearch {
hosts => [ "${LOGS_ELASTICSEARCH_CLUSTER}:443" ]
ssl => true
index => "cwl-%{+YYYY.MM.dd}"
document_type => "log"
}
I wanted to redirect some type of logs to a new elasticsearch index but I'm getting this error
[2019-09-03T14:39:00,242][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: timestamp field is missing>, :backtrace=>["org/logstash/ext/JrubyEventExtLibrary.java:…
I have to now figure out how to create a [@metadata ] field and sprintf to at least access the index name. Any pointers would be highly appreciated.
I think I am having the below issue in logstash compared to Postman where it outputs the additional metadata. How would include them in logstash?