Your SlideShare is downloading. ×
  • Like
Splunk Java Logging
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Splunk Java Logging

  • 2,217 views
Published

Presentation section from Splunk Live content

Presentation section from Splunk Live content

Published in Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,217
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
35
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. SplunkJavaLoggingDamien DallimoreDeveloper Evangelist
  • 2. 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
  • 3. 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
  • 4. 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
  • 5. Copyright©2013,SplunkInc.Logging Framework takes care of the Splunk transport, REST or Raw TCP5
  • 6. Copyright©2013,SplunkInc.<barf>Typical Java Stacktraces in logs</barf>6
  • 7. Copyright©2013,SplunkInc.SplunkJavaLogging is your friend7
  • 8. Copyright©2013,SplunkInc.Java Stacktraces in Splunk8
  • 9. Demo
  • 10. 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