Replies: 1 comment 3 replies
-
I don't know since I've never tried it. This is a simple HTTP sink, that happens to be able to send log events to the HTTP input of Logstash. For your suggestion to work there has to be some interaction between Logstash and ElasticSearch, and if there are any requirements on the payload, you can either modify the payload of the HTTP POST using a batch formatter or a event formatter. Will that get you closer to a solution? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been previously using the [https://github.com/serilog/serilog-sinks-elasticsearch](ElasticSearch Sink) and it has a neat feature to be able to specify the index name that ElasticSearch needs to log the message into. Therefore, I want to do the same thing using this sink via logstash.
Essentially, how can one set output{ elasticsearch { index => } } from the default "%{ [@metadata][beat] } ..." ?
Is it possible to add additional @metadata using this sink to then use it as an index name?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions