Splunk Java Logging
Upcoming SlideShare
Loading in...5
×
 

Splunk Java Logging

on

  • 2,269 views

Presentation section from Splunk Live content

Presentation section from Splunk Live content

Statistics

Views

Total Views
2,269
Views on SlideShare
2,269
Embed Views
0

Actions

Likes
1
Downloads
32
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Splunk Java Logging Splunk Java Logging Presentation Transcript

  • SplunkJavaLoggingDamien DallimoreDeveloper Evangelist
  • Copyright©2013,SplunkInc.Background2• Sometimes you can’t deploy a Splunk Forwarder to collect logs,although this is certainly a best practice• Sometimes you have disk constraints for writing logs• Wouldn’t it be nice to send your log events from your code directly toSplunk ?• Sure , Splunk can eat any text logs , but we should be educating ourdevelopers about the value in best practice semantic logging
  • Copyright©2013,SplunkInc.SplunkJavaLogging3• A logging framework to allow developers to as seamlessly as possibleintegrate Splunk best practice logging semantics into their code• Transport log events to Splunk directly from your code• Custom handler/appender implementations(REST and Raw TCP) forcommon Java logging frameworks .• LogBack• Log4j (Log4j2 coming also)• java.util.logging• Utility classes for formatting log events• Configurable in memory buffer to handle network outages
  • Copyright©2013,SplunkInc.Developers just log as they are used to42012-08-07 15:54:06:644+1200 name="Failed Login" event_id="someID" app="myapp" user="jane" somefieldname="foobar"BetterA-HA
  • Copyright©2013,SplunkInc.Logging Framework takes care of the Splunk transport, REST or Raw TCP5
  • Copyright©2013,SplunkInc.<barf>Typical Java Stacktraces in logs</barf>6
  • Copyright©2013,SplunkInc.SplunkJavaLogging is your friend7
  • Copyright©2013,SplunkInc.Java Stacktraces in Splunk8
  • Demo
  • Copyright©2013,SplunkInc.Contact me10Email : ddallimore@splunk.comTwitter : @damiendallimoreSkype : damien.dallimoreGithub : damiendallimoreSplunkbase : damiendSlideshare : http://www.slideshare.net/damiendallimoreBlogs : http://blogs.splunk.com/devWeb : http://dev.splunk.com