Skip to content

Instantly share code, notes, and snippets.

@gspncr
Created October 7, 2019 14:15
Show Gist options
  • Save gspncr/db54818e2493a265820cd0b79c5682e3 to your computer and use it in GitHub Desktop.
Save gspncr/db54818e2493a265820cd0b79c5682e3 to your computer and use it in GitHub Desktop.
An example td-agent.conf file for you to use with New Relic Logs. My example source is for Tomcat, but you can use whatever your source is :)
<source>
@type tail
path /opt/apache-tomcat-8.5.5/logs/catalina.out
pos_file /var/log/catalina.log.pos
tag webportal
<parse>
@type none
</parse>
</source>
<match **>
@type newrelic
api_key {{ NRInsightsAPIKey }}
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment