Skip to content

Instantly share code, notes, and snippets.

@agirlnamedsophia
Created October 4, 2018 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agirlnamedsophia/2fc29d38b16743456cd023972d611f88 to your computer and use it in GitHub Desktop.
Save agirlnamedsophia/2fc29d38b16743456cd023972d611f88 to your computer and use it in GitHub Desktop.
# Configure your Datadog Agent.
# Create a ruby.d/conf.yaml file in your conf.d/ folder with the following content:
##Log section
logs:
## - type : file (mandatory) type of log input source (tcp / udp / file)
## port / path : (mandatory) Set port if type is tcp or udp. Set path if type is file
## service : (mandatory) name of the service owning the log
## source : (mandatory) attribute that defines which integration is sending the logs
## sourcecategory : (optional) Multiple value attribute. Can be used to refine the source attribute
## tags: (optional) add tags to each logs collected
- type: file
path: /path/to/your/ruby/log.log
service: ruby
source: ruby
sourcecategory: sourcecode
# For multiline logs, if they start by the date with the format yyyy-mm-dd uncomment the following processing rule
#log_processing_rules:
# - type: multi_line
# name: new_log_start_with_date
# pattern: \d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment