Last active
February 22, 2024 09:19
-
-
Save arsalanses/56e196ef0b20d20f964ed18bd724f354 to your computer and use it in GitHub Desktop.
logging from file into stdio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| tail-from-file: | |
| image: busybox | |
| container_name: tail-from-file | |
| restart: unless-stopped | |
| volumes: | |
| - /var/log/system.log:/var/log/stream.log | |
| command: | |
| - tail | |
| - -f | |
| - /var/log/stream.log | |
| network_mode: none | |
| logging: | |
| driver: "fluentd" | |
| options: | |
| fluentd-address: 123.123.123.123:123 | |
| tag: tag.access | |
| fluentd-async: 'true' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment