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

Adding graylog configuration #16

Merged
merged 4 commits into from
Jul 20, 2023
Merged

Adding graylog configuration #16

merged 4 commits into from
Jul 20, 2023

Conversation

ulrikpedersen
Copy link
Owner

Adding Graylog services to docker compose and configuring the controls containers to redirect logs using the GELF driver.

This approach just lumps the Graylog services (an extra mongo DB, elasticsearch and graylog containers) into the same docker compose file. If this becomes too unwieldy we could also consider splitting the graylog part into a separate compose file which can be kept running the in background as infrastructure... Thoughts, @8ryn ?

Closes #9

@ulrikpedersen ulrikpedersen requested a review from 8ryn July 19, 2023 14:46
This way it is easier to keep the graylog service running in the background as infrastructure while developing and regularly restarting the control system services
@ulrikpedersen
Copy link
Owner Author

In the end I split the graylog configuration into a separate compose file. Then the logging services can be started independently of the simulation/control/daq services. The workflow to start up everything then becomes:

  • First start logging services: docker compose -f graylog-compose.yml up -d
  • Then start the controls environment: docker compose up -d
  • Work on code, restart controls environment or individual services (docker restart <container>) - and all service logs appears in graylog.

@ulrikpedersen ulrikpedersen merged commit fc4d227 into main Jul 20, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Work on issue in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Logging Service to environment
1 participant