-
Notifications
You must be signed in to change notification settings - Fork 343
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
Store logs in /var/log #7979
Store logs in /var/log #7979
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7979 +/- ##
=========================================
Coverage 65.77% 65.77%
Complexity 98 98
=========================================
Files 327 327
Lines 13010 13010
Branches 998 998
=========================================
Hits 8557 8557
Misses 4091 4091
Partials 362 362
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
+1 this idea, it would be better for the logs agent's permissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After running Dev CIAB on the PR code, couldn't find the log files either at /opt/traffic_router/var or /var/log/. Also couldn't find the log file in TM container as well.
/opt/traffic_router/var #
/opt/traffic_router/var # ls -l
total 0
drwxr-x--- 4 root root 128 Apr 4 05:19 auto-zones
/opt/traffic_router/var # cd /var/log/
/var/log # ls -l
total 0
The TR logs show up for me in [root@trafficrouter traffic_router]# ls -l
total 76
-rw-r--r-- 1 root root 0 Apr 10 18:52 access.log
-rw-r--r-- 1 root root 73560 Apr 10 18:55 traffic_router.log
[root@trafficrouter traffic_router]# tail -f access.log They also show up for
The TM logs are printed to stdout only with no files trafficcontrol/infrastructure/cdn-in-a-box/traffic_monitor/traffic_monitor.cfg Lines 8 to 13 in 900cf16
trafficcontrol/infrastructure/cdn-in-a-box/variables.env Lines 76 to 81 in 900cf16
|
This PR
so that the logs are on a different partition than the application itself.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bugfix, which Traffic Control versions contained the bug?
PR submission checklist