Created
October 4, 2018 17:50
-
-
Save agirlnamedsophia/2fc29d38b16743456cd023972d611f88 to your computer and use it in GitHub Desktop.
This file contains 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
# 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