Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow source file and line in Cassandra system.log. #307

Merged
merged 4 commits into from
Dec 19, 2012

Conversation

shawnsmith
Copy link

For logging Cassandra compaction events:

This pull request updates the Cassandra dogstream parser to support Cassandra's default log4j pattern for /var/log/cassandra/system.log:

log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n

The previous dogstream regular expression appears to work for stdout but does not expect the %F (line %L) piece configured for system.log.

To enable, add the following to /etc/dd-agent/datadog.conf:

dogstreams: /var/log/cassandra/system.log:dogstream.cassandra:parse_cassandra

@clutchski
Copy link
Contributor

@remh Can you take a look at this?

@remh
Copy link
Contributor

remh commented Dec 18, 2012

sure

remh added a commit that referenced this pull request Dec 19, 2012
@remh remh merged commit b481b3f into DataDog:master Dec 19, 2012
@clutchski
Copy link
Contributor

Does it work for both syslog and file log formats?

@remh
Copy link
Contributor

remh commented Dec 19, 2012

yes

@alq666
Copy link
Member

alq666 commented Dec 21, 2012

@shawnsmith We'll plan to release this in 3.4.3, the week of New Year's Day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants