Closed mmuruev closed 3 months ago
If the appender is configured, then it is expected that the appender is configured with a valid host. I expect an error to occur in this case, which is what is happening. In my opinion, this is working as expected.
If you would like different behavior when a host is not configured, I'd recommend adding some conditionals in your configuration. For example use <springProfile ...>
or logback's <if ...>
If host value is null, and appeder in use with async appended it causes an exception. To Reproduce Steps to reproduce the behavior:
result for localhost (no LOGSTASH_HOST value, and never required)
As solution for now
But this is not 100% correct I belive is just run it against localhost. Better never start it. And if I remove async appended everything is fine.