LogstashFormatter does not allow to send no type and no host
nicolas-hernandez opened this issue · comments
We have an ELK stack installation (using filebeat) that automatically fills in the type field if not present. This type is generated dinamically outside the application.
The LogstashFormatter always fills the type
field (using either the applicationName
or the channel
) and the host
field, but we would like to have the option of not doing it at all.
We would like to have a way to indicate to the formatter not to fill the type
field. Could this be through a new parameter in the constructor or anything like this?
To be honest, if you have such custom requirements, I would recommend extending the class and overriding format(). It's easy enough. We can't have options for every possible field someone may want or not.