serilog-sinks-http icon indicating copy to clipboard operation
serilog-sinks-http copied to clipboard

Configuring Logstash Similar to Elasticsearch Sink's Index Format Property

Open giangcoi48k opened this issue 1 year ago • 4 comments

I am using Http Sink to send logs to Logstash from multiple applications. For each application, I want to send logs to a separate index. Elasticsearch Sink provides a configuration property to accomplish this: IndexFormat = $"Logs-{env}-{DateTime.Now:yyyy-MM}". Is there a way to configure Http Sink similarly to achieve this?

giangcoi48k avatar Jan 12 '24 07:01 giangcoi48k

Hi there and welcome to this repository!

A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it.

github-actions[bot] avatar Jan 12 '24 07:01 github-actions[bot]

I don't know. This sink usually sends log events to Logstash. When we talk about indexes we refer to the indexes in Kibana, right? If we send indexes to Logstash, are they passed on to Kibana?

FantasticFiasco avatar Jan 15 '24 06:01 FantasticFiasco

I think I need a filter in Logstash instead of finding a way to config

giangcoi48k avatar Jan 15 '24 06:01 giangcoi48k

Please let me know if you solve the issue, and how you solved it. Thanks!

FantasticFiasco avatar Jan 16 '24 06:01 FantasticFiasco