getting started breakout session

43
Copyright © 2014 Splunk Inc. GETTING STARTED WITH SPLUNK KELLY FEAGANS SR. SE, TK-421

Upload: splunk

Post on 16-Jul-2015

173 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Getting Started Breakout Session

Copyright © 2014 Splunk Inc.

GETTING STARTED WITH SPLUNK

KELLY FEAGANS SR. SE, TK-421

Page 2: Getting Started Breakout Session

During  the  course  of  this  presenta1on,  we  may  make  forward-­‐looking  statements  regarding  future  events  or  the  expected  performance  of  the  company.  We  cau1on  you  that  such  statements  reflect  our  current  expecta1ons  and  es1mates  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  this  presenta1on  are  being  made  as  of  the  1me  and  date  of  its  live  presenta1on.    If  reviewed  aHer  its  live  presenta1on,  this  presenta1on  may  not  contain  current  or  accurate  informa1on.      We  do  not  assume  any  obliga1on  to  update  any  forward-­‐looking  statements  we  may  make.    In  addi1on,  any  informa1on  about  our  roadmap  outlines  our  general  product  direc1on  and  is  subject  to  change  at  any  1me  without  no1ce.    It  is  for  informa1onal  purposes  only  and  shall  not,  be  incorporated  into  any  contract  or  other  commitment.    Splunk  undertakes  no  obliga1on  either  to  develop  the  features  or  func1onality  described  or  to  include  any  such  feature  or  func1onality  in  a  future  release.  

 Splunk,  Splunk>,  Splunk  Storm,  Listen  to  Your  Data,  SPL  and  The  Engine  for  Machine  Data  are  trademarks  and  registered  trademarks  of  Splunk  Inc.  in  the  United  States  and  other  countries.  All  other  brand  names,  product  names,  or  trademarks  belong  to  their  respecCve  

owners.    

©2013  Splunk  Inc.  All  rights  reserved.  

Legal  No)ces  

2

Page 3: Getting Started Breakout Session

What  is  Splunk?  GeLng  Started  Basic  Searching  (demo)  Using  Fields  (demo)  Saving  and  Sharing  Reports  (demo)  Next  Steps  

AGENDA  

Page 4: Getting Started Breakout Session

Spelunking:    

Splunking:  

to  explore  underground  caves  

to  explore  machine  data  

4

Page 5: Getting Started Breakout Session

What  is  Machine  Data?  

5

!   Log  files  !   Custom  applica1ons  !   Web  servers  !   User  clickstreams  !   Social  plaTorms  !   Servers/hypervisors/virtual  machines  !   Configura1ons  !   Telecom  devices  !   Storage  devices  !   Network  devices  

!   Security  devices,  firewalls,  IDS  !   Databases  !   Web  services  !   System  metrics  !   GPS  !   DNS,  DHCP  !   AAA  logs  !   Proxy  servers  !   Errors  !   Scripts  !   Sensors  

Page 6: Getting Started Breakout Session

Machine  Data  Contains  Cri)cal  Insights  

6

Page 7: Getting Started Breakout Session

What  Does  Splunk  Really  Do?  

Into  this  It  turns  this  

[Thu Sep 24 14:57:33 2009] [error] [client 10.2.1.44] ap_proxy: trying GET /petstore/

enter_order_information.screen at backend host '127.0.0.1/7001; got exception 'CONNECTION_REFUSED [os error=0, line 1739 of ../nsapi/URL.cpp]: Error connecting to host

127.0.0.1:7001', referer: http://10.2.1.223/petstore/cart.do?action=purchase&itemId=EST-14

7

Page 8: Getting Started Breakout Session

GeAng  Started  

Page 9: Getting Started Breakout Session

Splunk  Web  

9

!   Splunk's  dynamic  and  interac1ve  browser-­‐based  interface  !   The  primary  interface  for  inves1ga1ng  problems,  repor1ng  on  results,  and  managing  Splunk  deployments  

!   Note:  Splunk  with  a  free  license  does  not  have  access  controls,  so  you  will  not  be  prompted  for  login  informa1on  

Page 10: Getting Started Breakout Session

Search  &  Repor)ng  App  –  Summary  View  

current  view  

search  bar  

app  naviga1on  

current  app  

global  stats  

start  search  1me  range  picker  

resources  

10  

Page 11: Getting Started Breakout Session

Events  

11

!   Searches  return  events  !   In  Splunk,  an  event  is  a  single  piece  of  data,  such  as  a  record  in  a  log  file  or  other  data  input  

!   Splunk  breaks  up  input  data  into  individual  events  and    gives  each  a  1mestamp,  host,  source,  and  sourcetype  

Page 12: Getting Started Breakout Session

Events  (con)nued)  

12  

Page 13: Getting Started Breakout Session

Everything  is  Searchable  !   *  wildcard  supported    !   Search  terms  are  case  insensi1ve  

!   Booleans  AND,  OR,  NOT    • Must  be  uppercase  • AND  is  implied  between  terms  

!   Use  ()  for  complex  searches  !   Use  quota1on  marks    for  phrases    

fail*!

fail* nfs!

error OR 404!

error OR failed OR (sourcetype=access* (500 OR 503))!

"login failure"!

13

Page 14: Getting Started Breakout Session

Basic  Searching    

Page 15: Getting Started Breakout Session

Search  

15

!   Matching  results  are  displayed  in  reverse  chronological  order  (newest  first)  

!   Matching  search  terms  are  highlighted  

Page 16: Getting Started Breakout Session

Search  Results  

16

16

Fields  sidebar  

1mestamp  

1meline  

selected  fields  

event  data  

Page 17: Getting Started Breakout Session

Naviga)ng  Search  Results    

17

!   Mouse  over  search  results  –  Keywords  and  parts  of  

keywords  are  highlighted  

!   To  add  a  term  to  the  search,  click  it  –  AND  is  implied  –  To  remove,  click  again  

!   To  exclude  a  term  from  a  search,  alt+click  it  –  Adds  NOT  [term]  to  search  

Page 18: Getting Started Breakout Session

Selec)ng  Search  Time  Range  

18

!   By  default,  search  is  “all  1me”  –  Can  consume  a  great  

deal  of  resources  –  Ideal  for  looking  at  long  

term  paierns,  such  as,  advanced  persistent  threat  

!   To  narrow  your  search,  use  the  1me  range  picker  

Page 19: Getting Started Breakout Session

Basic  Searching  Demo    

Page 20: Getting Started Breakout Session

Using  Fields  

Page 21: Getting Started Breakout Session

What  are  Fields?  !  Fields  are  searchable  key/value  pairs  in  your  event  data  

•  Example:  host=www1, status=503!

!  All  fields  have  names  and  can  be  searched  with  those  names  •  Example:  Separa1ng  an  hip  status  code  of  404  from  Atlanta’s  area  code  

!  There  are  2  types  of  fields:  default fields

data-specific fields

21

Page 22: Getting Started Breakout Session

!  Data-­‐specific  field  values  come  from  your  data  !  Some1mes  indicated  by  obvious  key=value  pairs:          !  Some1mes  not:  

!   For  more  informa1on,  please  see:  hip://docs.splunk.com/Documenta1on/Splunk/latest/Data/Listofpretrainedsourcetypes    

Iden)fying  Data-­‐specific  Fields  

22

22  

Page 23: Getting Started Breakout Session

!  For  the  current  search,  shows    •  Selected  fields  •  Interes1ng  fields  •  Link  to  view  all  fields  

!  Fields  returned  are  those  Splunk  recognized  from  your  search  results  

!  Interes1ng  fields  are  fields  that  have  values  in  at  least  50%  of  events  

Fields  Sidebar    

23  

Selected fields

Interesting fields

View all fields

(#)  indicates  number  of  unique  values  

23

Page 24: Getting Started Breakout Session

Selected  Fields  

24

!   Selected  fields  and  their  values    display  under  every  event  when  a    value  is  available  

!   By  default,  host,  source,  and  sourcetype  are  selected  fields  

!   Fields  sidebar  is  interac1ve  

24  

24  

Page 25: Getting Started Breakout Session

!  Alt-­‐click  any  field  to  see    a  window  of  op1ons  for  that  field  

!  Click  Yes  to  the  right    of  Selected  

•  The  field  will  appear  in  the  selected  fields  list  and  in  the  search  results  

Adding  Fields  to  Selected  Fields  

25

25  

25  

Page 26: Getting Started Breakout Session

More  Ways  to  Use  the  Fields  Sidebar  

Create  reports  (charts)  

Click  a  value  to  add  to  a  search  

ALT  +  click  a  value  to  remove  from  a  search  

Narrow  the  search  to  show  only  results  that  

contain  this  field  

26  

Page 27: Getting Started Breakout Session

Using  Fields  in  Searches  !   Efficient  way  to  pinpoint  searches  and  refine  results  

 !   Use  wildcards    

!   Field  names  ARE  case  sensi1ve,  field  values  are  NOT  •  Example:  Splunk  extracts  a  field  in  linux_secure  data  named  user  •  These  two  searches  return  results:                            This  one  does  not:  

vs.

vs.  

27

Page 28: Getting Started Breakout Session

!  From  the  fields  sidebar,  select  a  field  and  a  report  defini1on  (Top  values,  Top  values  by  1me,  or  Rare  values)  

Create  Reports  from  Fields  Sidebar  

28

28  

Page 29: Getting Started Breakout Session

Create  a  ‘Top  Values’  Report  Mouse  over  a  bar  for  a  detailed  view  of  its  count  

Page 30: Getting Started Breakout Session

Using  Fields  Demo  

Page 31: Getting Started Breakout Session

Saving  and  Sharing  Reports  

Page 32: Getting Started Breakout Session

!  Save  search  criteria  and  1me  range,  but  not  results,  to  re-­‐run  at  any  point  in  the  future  

!  Click  the  Save  As  buion,  select  Report,  enter  a  1tle  

Saving  Reports  

Page 33: Getting Started Breakout Session

Running  Saved  Reports  

33  

Page 34: Getting Started Breakout Session

Sharing  Reports  (Jobs)  

!   Save  report  results  and  generate  a  link  to  it  –  good  for  7  days  !   Use  Share  buion  or  Job  dropdown  !   Distribute  link  as  appropriate  

Page 35: Getting Started Breakout Session

!  Capture  the  search  output  at  a  point  in  1me  –  “freeze”  results  !  Click  Export  !  Choose  a  format  

Saving  Results  

Page 36: Getting Started Breakout Session

Beyond  the  Basics  !   Splunk  has  many  powerful  features  and  search  commands  that  allow  you  to:  –  Pivot  -­‐  quickly  build  queries  and  display  results  through  an  easy  to  use  interface  –  Create  alerts  –  Capture  and  share  knowledge  –  Calculate  sta1s1cs  –  Format  and  organize  values  within  search  results  –  Create  compelling  data  visualiza1ons  and  reports  –  And  more!  –  Learn  about  these  features  in  other  Using  Splunk  track  sessions  

36

Page 37: Getting Started Breakout Session

Saving  and  Sharing  Reports  Demo  

Page 38: Getting Started Breakout Session

Next  Steps  

Page 39: Getting Started Breakout Session

Get  Yourself  Educated!  www.splunk.com  >    Services  >    Educa1on    

39

Page 40: Getting Started Breakout Session

Catch  a  Flick!  

40

Page 41: Getting Started Breakout Session

Read  Any  Good  Books  Lately?  

splunk.com/goto/book

41  

Page 42: Getting Started Breakout Session

!  Download  Splunk  Enterprise  -­‐  build  your  own  sandbox  !  Free!          www.splunk.com/download      !  Pick  your  plaTorm  !  Installs  in  minutes  

Take  a  Test  Drive!  

42

42  

Page 43: Getting Started Breakout Session

Thank  You