splunkfor.net developers...splunk*extension*for*visual*studio* 30!...

38
Copyright © 2014 Splunk Inc. Glenn Block Senior Product Manager, Splunk Splunk for .NET Developers

Upload: others

Post on 16-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Copyright  ©  2014  Splunk  Inc.  

Glenn  Block  Senior  Product  Manager,  Splunk  

Splunk  for  .NET  Developers  

Page 2: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Disclaimer  

2  

During  the  course  of  this  presentaHon,  we  may  make  forward-­‐looking  statements  regarding  future  events  or  the  expected  performance  of  the  company.  We  cauHon  you  that  such  statements  reflect  our  current  expectaHons  and  

esHmates  based  on  factors  currently  known  to  us  and  that  actual  events  or  results  could  differ  materially.  For  important  factors  that  may  cause  actual  results  to  differ  from  those  contained  in  our  forward-­‐looking  statements,  

please  review  our  filings  with  the  SEC.  The  forward-­‐looking  statements  made  in  the  this  presentaHon  are  being  made  as  of  the  Hme  and  date  of  its  live  presentaHon.  If  reviewed  aRer  its  live  presentaHon,  this  presentaHon  may  not  contain  current  or  accurate  informaHon.  We  do  not  assume  any  obligaHon  to  update  any  forward-­‐looking  statements  we  may  make.  In  addiHon,  any  informaHon  about  our  roadmap  outlines  our  general  product  direcHon  and  is  subject  to  change  at  any  Hme  without  noHce.  It  is  for  informaHonal  purposes  only,  and  shall  not  be  incorporated  into  any  contract  or  other  commitment.  Splunk  undertakes  no  obligaHon  either  to  develop  the  features  or  funcHonality  described  or  to  

include  any  such  feature  or  funcHonality  in  a  future  release.  

Page 3: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

IntroducHon  and  background  

Page 4: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Agenda  

!   IntroducHon  and  background  –  Splunk  as  a  PlaVorm  !   New  Splunk  tools  for  .NET  Developers  !   Wrap-­‐Up    

4  

Page 5: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

hXps://github.com/glennblock  hXps://twiXer.com/gblock      

“I  should  be  tweeHng"  

My  Background  and  Role  

Page 6: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Oreilly  –  DEWANET  

6  

Page 7: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Powerful  PlaVorm  for  Enterprise  Developers  

7  

REST  API  

Build  Splunk  Apps   Extend  and  Integrate  Splunk  

Simple  XML  

HTML5  

JavaScript  

Web    Framework  

 

Java  JavaScript  Python    

Ruby  C#  PHP  

Data  Models  

Search  Extensibility  

Modular  Inputs  

SDKs  

Page 8: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

.NET  is  Changing…  

8  

CC  image  Dorothy…  not  in  Kansas  by  Alex  Beaie  Flickr  

Page 9: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

async/await  

9  

Page 10: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

ReacHve  Extensions  

10  

Page 11: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

11  

Page 12: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Portable  Class  Libraries  

12  

Page 13: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Portable  Class  Libraries  

13  

Page 14: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

IOS,  Android,  Linux  and  Mac  via  Xamarin  

14  

Screenshot  from  Xamarin.com  

Page 15: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  Tools  for    .NET  Developers  

Page 16: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Supercharge  Your  .NET  Development!  

16  

CC  image  Supercharger  by  Eaday  on  Flickr  

Page 17: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  SDK    for  C#  V2  

Page 18: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

What’s  Special  About  the  New  SDK?  

18  

!   Modern  API,  what  C#  developers  will  expect  !   100%  asynchronous  !   Supports  ReacHve  Extensions  (great  for  real-­‐Hme  searches)  !   Cross  PlaVorm      !   Testable  

Page 19: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Log  directly  to  Splunk  and  extend  Splunk  with  new  

inputs  

Integrate  search  results  with  other  applicaHons  using  

custom  visualizaHons  

Create  and  run  searches  

Splunk  SDK  

19  

Visualize  Search   Manage  

Add/Delete  users  

Manage  inputs  

Index  

Page 20: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

DEMO    SDK  Client    async,  portable  goodness  

Page 21: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

DEMO      Modular  Inputs    Teach  Splunk  new  ways  to  get  data  

Page 22: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Logging  Libraries  

Page 23: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Many  Choices  for  Logging  

Page 24: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  Logging  Libraries  for  .NET  A  tale  of  two  loggers  

ETW/SLAB  .NET  Tracing  

24  

App  

Trace  Listener  

Splunk  

Log  to  a  TraceSource  

Events  are  sent  to    or  Splunk  via  UDP  or  TCP  

App  

EventSource  

Splunk  

Log  to  ETW  via  an  EventSource  

SLAB  Sink  

UDP  or  TCP  sink  picks  up  events  via  SLAB  and  sends  to  Splunk  

Page 25: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

DEMO        Logging      Your  favorite  loggers  send  to  Splunk  

Page 26: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Logging  Directly  to  Splunk  

26  

!   Everything  you  need  to  wire  up  your  exisHng  apps  to  log  directly  over  UDP  or  TCP  to  a  Splunk  instance  or  forwarder  

!   Libraries  include  standard  .NET  Trace  Listeners  which  popular  OSS  logging  frameworks  like  log4net,  NLog  and  Enterprise  Library  support  

!   Libraries  also  include  support  for  the  SemanHc  Logging  ApplicaHon  Block  (SLAB),  which  leverages  the  high  performance  ETW  infrastructure  that  ships  in  Windows  

Page 27: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

NuGet  

Page 28: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

All  Our  New  Libraries  Are  Nuget  Packages  

28  

! Splunk.Client  ! Splunk.ModularInputs  ! Splunk.Logging.TraceListener  ! Splunk.Logging.SLAB  

Page 29: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  Extension    for  VS  

Page 30: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  Extension  for  Visual  Studio  

30  

!   A  template  for  creaHng  a  new  .NET  Project  using  the  Splunk  Client,  and  opHonally  using  the  new  logging  libraries  to  send  log  data  over  TCP  or  UDP  

!   Snippets  for  performing  common  tasks  using  the  Splunk  Client,  which  you  can  use  in  any  .NET  applicaHon  that  references  the  Splunk  SDK  for  C#  

!   A  template  for  creaHng  a  custom  C#  Modular  Input  

Page 31: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

DEMO        VS  Extension    Don’t  leave  home  without  it!  

Page 32: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Wrap  up!  

Page 33: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Splunk  NuGet  Packages  

33  

! Splunk.Client  ! Splunk.ModularInputs  ! Splunk.Logging.TraceListener  ! Splunk.Logging.SLAB  

Page 34: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

What  Did  We  Learn  Today?  

34  

!   Splunk  has  introduced  a  new  set  of  .NET  tools  !   Use  the  Splunk  SDK  to  develop  soluHons  integrate  or  extend  Splunk  !   Use  the  Logging  Libraries  to  easily  wire  up  your  apps  to  send  log  data  

!   Use  the  VS  extension  to  streamline  your  development  with  our  new  libraries  

Page 35: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Where  to  go  for  More  Info  •  Tutorials,  Code  Samples,  Geing  Started,  Downloads  

–  hXp://dev.splunk.com/    

•  Support  –  hXps://www.splunk.com/page/submit_issue    

•  GitHub  –  hXps://github.com/splunk/  

•  TwiXer  –  hXps://twiXer.com/splunkdev  or  follow  me:  hXps://twiXer.com/gblock    

•  Blog  –  hXp://blogs.splunk.com/dev/    

  35  

Page 36: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Q&A  

Page 37: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

Special  Offer:  Try  Splunk  MINT  Express  for  Free!  Splunk  MINT  offers  a  fast  path  to  mobile  intelligence.  How  fast?    

Find  out  with  a  6-­‐month  trial*  

•  Register  for  your  free  trial:  hXp://mint.splunk.com/conf2014offer  

•  Download  the  Splunk  MINT  SDKs  •  Add  the  Splunk  MINT  line  of  SDK  code  and  publish**    

•  Start  geing  digital  intelligence  at  your  fingerHps!    

*Offer  valid  for  .conf2014  a5endees  and  coworkers  of  a5endees  only.  

**Trial  allows  monitoring  of  up  to  750,000  monthly  acDve  users  (MAUs).  

 

37  

Page 38: Splunkfor.NET Developers...Splunk*Extension*for*Visual*Studio* 30! A*template*for*creang*anew*.NET*Projectusing*the*Splunk*Client,*and*opHonally*using*the*new*logging*libraries*to*send*log

THANK  YOU