Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
b25bf3bd
Commit
b25bf3bd
authored
Oct 02, 2013
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #300 from edx/jrbl/broken_log_rotation
rsyslog should log to {{log_bas_dir}}
parents
8028e189
d5a661d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
playbooks/edx-west/stage-all.yml
+2
-1
playbooks/roles/common/templates/edx_rsyslog.j2
+4
-4
No files found.
playbooks/edx-west/stage-all.yml
View file @
b25bf3bd
---
-
hosts
:
tag_environment_stage
-
hosts
:
tag_environment_stage:!tag_function_nat
# exclude nat host b/c we can't log in to do thing with it anyway
#- hosts: tag_Name_bastion_stage
sudo
:
True
vars
:
...
...
playbooks/roles/common/templates/edx_rsyslog.j2
View file @
b25bf3bd
...
...
@@ -27,12 +27,12 @@ auth,authpriv.* /var/log/auth.log
$template tracking,"%syslogtag%%msg%\n"
# looks for [service_name=<name>] in the beginning of the log message,
# if it exists the log will go into
/mnt/logs
/<name>/edx.log, otherwise
# it will go into
/mnt/logs
/edx.log
$template DynaFile,"
/mnt/logs
/%syslogtag:R,ERE,1,BLANK:\[service_variant=([a-zA-Z_-]*)\].*--end%/edx.log"
# if it exists the log will go into
{{log_base_dir}}
/<name>/edx.log, otherwise
# it will go into
{{log_base_dir}}
/edx.log
$template DynaFile,"
{{log_base_dir}}
/%syslogtag:R,ERE,1,BLANK:\[service_variant=([a-zA-Z_-]*)\].*--end%/edx.log"
local0.* -?DynaFile
local1.*
/mnt/logs
/tracking.log;tracking
local1.*
{{log_base_dir}}
/tracking.log;tracking
#cron.* /var/log/cron.log
#daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment