Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional informations to the sidecar that are transfered back to Graylog #280

Closed
jalogisch opened this issue Sep 5, 2018 · 3 comments

Comments

@jalogisch
Copy link

Problem description

When you have large fleet of sidecars it would be helpful when you can add additional information to the configuration that are transfered to Graylog and are then available.
Like you can have tags that are attached to the sidecar to have decisions ( automated?) based on this tags.

@mariussturm mariussturm changed the title add additional to sidecar that are transfered to Graylog Add additional informations to the sidecar that are transfered back to Graylog Sep 5, 2018
@bitfactory-henno-schooljan

Would it be possible to do this by setting additional Runtime variables in a sidecar.yml configuration, so that it is available through something like a ${sidecar.myOwnVariable} in a configuration? This will allow for using the same configuration for all sidecars in the scenario where there are only small differences on servers, for instance when logs are located in different locations, but otherwise the same. That can prevent a lot of duplication.

@on3iropolos
Copy link

In my use case, we have multiple environments all pushing logs to the same graylog cluster. It would be helpful to create a custom variable like "datacenter_environment: PROD" in the sidecar.yml file, and use this variable on the collector which is otherwise identical per environment - ultimately resulting in a message field indicating the datacenter the log came from.

Currently I am relying on the full DNS name being accurate.

@boosty
Copy link
Contributor

boosty commented Jan 13, 2023

Hi everyone,

with Graylog 5.0 we released the possibility to automatically assign Sidecar configurations, based on tags.

A list of tags can be assigned in a Sidecar's YAML configuration. Collector configuration matching any of these tags will then automatically be applied to the Sidecar.

Details:

Recently a related change was added to the Sidecar installer on Windows to accept tags at installation time, for convenience:

@boosty boosty closed this as completed Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants