Skip to content

docker to use syslog log driver#416

Merged
und1sk0 merged 11 commits intomasterfrom
SAN-3569-docker-syslog-driver
Apr 18, 2016
Merged

docker to use syslog log driver#416
und1sk0 merged 11 commits intomasterfrom
SAN-3569-docker-syslog-driver

Conversation

@und1sk0
Copy link
Copy Markdown
Contributor

@und1sk0 und1sk0 commented Apr 8, 2016

  • consolidate all loggly rules into a single role that reads logs from the system log socket and places files that match a tuple of facility (local7) and string matches the app_name then places that message into the correct file (then stops).
  • update all.yml to make syslog the default log driver for docker
  • remove json_file from various group_vars files (overrides default syslog driver)

Dependencies

  • rsyslog, docker-engine, linux ;)

Reviewers

Tests

Test any modifications on one of our environments.

Deployment (post-merge)

Ensure that all environments have the given changes.

  • deployed to epsilon
  • deployed to gamma
  • deployed to delta

@und1sk0 und1sk0 self-assigned this Apr 8, 2016
@und1sk0 und1sk0 changed the title TODO - add in anurag's loggly check docker to use syslog log driver Apr 8, 2016
@und1sk0
Copy link
Copy Markdown
Contributor Author

und1sk0 commented Apr 12, 2016

pushing this out to staging envs (epsilon, gamma) today.

@und1sk0
Copy link
Copy Markdown
Contributor Author

und1sk0 commented Apr 14, 2016

Logs show up in {{ name }}-daemon.log:

root@ip-10-12-197-140:/var/log# tail -1 charon-daemon.log 
Apr 14 23:33:13 ip-10-12-197-140 node: {"name":"charon","environment":"production-epsilon","host":"10.12.197.140","hostname":"ip-10-12-197-140.17654916","pid":6203,"module":"server","level":20,"address":"172.17.0.2","questions":[{"name":"s3-us-west-2.amazonaws.com","type":1,"class":1}],"msg":"No internal container domain names given, skipping.","time":"2016-04-14T23:33:13.460Z","v":0}

And in loggly: https://sandboxes.loggly.com/search#terms=%22Incoming%20DNS%20Query%22&from=2016-04-14T23%3A04%3A42.569Z&until=2016-04-14T23%3A34%3A42.569Z&source_group=&filter=json.environment%3Bproduction-epsilon

Comment thread ansible/app-services.yml
- include: detention.yml git_branch="{{ detention_branch }}"
- include: drake.yml git_branch="{{ drake_branch }}"
- include: eru.yml git_branch="{{ eru_branch }}"
- include: mavis.yml git_branch="{{ mavis_branch }}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mavis deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ammended

@bkendall
Copy link
Copy Markdown
Contributor

lgtm

@und1sk0 und1sk0 merged commit 5123230 into master Apr 18, 2016
@und1sk0 und1sk0 deleted the SAN-3569-docker-syslog-driver branch April 18, 2016 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants