I’m trying collector-sidecar and currently facing an issue.
I can (and probably should) configure filebeat settings from gray log site and those settings should be synchronized with all the sidecar service clients.
If I understand correctly - to enable json parsing I need to use any of JSON options available:
I’m quite new with that, from documentation it looks like it is possible to add to the end of configuration, but I need to go that under prospectors, like this:
I’ve read snippets documentation once again and there’s this statement:
It’s also conceivable to put a full configuration file into a snippet and skip all of the input and output mechanism.
So yey, it looks like what I need, so I’ve deleted filebeat input/output configuration and added configuration to snippet instead.
But it looks like even though there are no inputs/outputs for filebeat, graylog renders some empty configuration and then appends snippet in filebeat.yml:
I would say this is a bug, if there are no inputs/outputs configured we could skip the empty prospector array. So that a snippet can set it’s own. Feel free to open an issue in the Sidecar repository, can take a look then.