+ All Categories
Home > Documents > LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm*...

LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm*...

Date post: 20-May-2018
Category:
Upload: trinhtuyen
View: 219 times
Download: 1 times
Share this document with a friend
52
Copyright © 2013 Splunk Inc. Lincoln Bowser Sr. Technical Instructor, Splunk #splunkconf Unleashing the Power of Splunk with Knowledge Objects
Transcript
Page 1: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Copyright  ©  2013  Splunk  Inc.  

Lincoln  Bowser  Sr.  Technical  Instructor,  Splunk  #splunkconf  

Unleashing  the  Power  of  Splunk  with  Knowledge  Objects  

Page 2: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Legal  NoJces  During  the  course  of  this  presentaJon,  we  may  make  forward-­‐looking  statements  regarding  future  events  or  the  expected  performance  of  the  company.  We  cauJon  you  that  such  statements  reflect  our  current  expectaJons  and  esJmates  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  presentaJon  are  being  made  as  of  the  Jme  and  date  of  its  live  presentaJon.    If  reviewed  aVer  its  live  presentaJon,  this  presentaJon  may  not  contain  current  or  accurate  informaJon.      We  do  not  assume  any  obligaJon  to  update  any  forward-­‐looking  statements  we  may  make.    In  addiJon,  any  informaJon  about  our  roadmap  outlines  our  general  product  direcJon  and  is  subject  to  change  at  any  Jme  without  noJce.    It  is  for  informaJonal  purposes  only  and  shall  not,  be  incorporated  into  any  contract  or  other  commitment.    Splunk  undertakes  no  obligaJon  either  to  develop  the  features  or  funcJonality  described  or  to  include  any  such  feature  or  funcJonality  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.  

2  

Page 3: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

About  Me  

!   Home  office  in  the  metropolis  of  Tracy,  CA  !   Deliver  all  core  Splunk  classes  !   SPL  enthusiast  

3  

Page 4: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Agenda  

!   Tags  !   Event  Types  !   Alerts  

Page 5: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Tags  

Page 6: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Splunk  as  a  “Search  Engine”  

6  

Type  in  keywords,  hit  return,  get  results  …  

 

Page 7: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

So  Much  More  Than  a  “Search  Engine”  

7  

!   Splunk  allows  you  to  “store”  knowledge  along  with  your  IT  data  !   InsJtuJonal  knowledge    

–  For  example:  server  funcJon  or  device  locaJon  

!   Learned  knowledge  –  For  example:  idenJfy  crash  precursors  or  suspicious  acJvity  paberns  

!   You  store  these  in  Splunk  using  Knowledge  Objects  

Page 8: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Scenario  –  Confusing  Server  Names  

8  

!   Server  names  aren’t  always  meaningful  to  you!  

!   SomeJmes  they  reflect  a  theme  or  hobby  

host="lnx1721_64_us_west_apache"!!

host="giants" OR host="reds" AND NOT host="dodgers" !!

Page 9: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Knowledge  Objects  –  Tags  to  the  Rescue  

9  

Tags  are  metadata  you  can  add  to  specific  field  /  value  pairs  

 Splunk  Enterprise  6  1

2

3

Note:  tags  are  applied  to  field/value  combinaJons,  not  fields!  

Page 10: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Knowledge  Objects  –  Tags  to  the  Rescue  

10  

Splunk  Enterprise  5  

Page 11: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Using  Tags  

11  

Search  all  hosts  tagged  as  "webfarm"  

 

or  

Full  Syntax   Short  Form  

Note:  you  can  use  the  short  form  effecJvely  as  long  as  no  other  fields  have  the  same  tag  value  

Page 12: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

But  Who  Can  See/Use  My  Tags?  

12  

!   IniJally,  tags  are  created  as  private  knowledge  objects  !   If  you  are  a  power  user  (or  admin)  and  want  other  users  to  see/use  your  tags,  you  must  share  them  –  This  is  true  for  all  knowledge  objects  that  do  not  display  sharing  opJons  

upon  creaJon  

Page 13: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Sharing  Knowledge  Objects  –  5  

13  

1 32

Page 14: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Sharing  Knowledge  Objects  –  5  

14  

4 5

Page 15: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Sharing  Knowledge  Objects  –  6  

15  

1

2

Steps  3-­‐5  the  same  

Page 16: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Things  to  Remember  About  Tags  

16  

!   Tag  values  are  case  sensiJve  !   Permissions  of  tags  always  default  to  Private  !   Tags  are  associated  with  field/value  combinaJons  

!   You  cannot  use  a  wildcard  to  assign  a  tag  across  mulJple    values,  but  ...    

Page 17: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Event  Types  

Page 18: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Knowledge  Objects  –  Event  Types  

18  

!   Event  types  can  help  you  automaJcally  idenJfy  and  classify  events  based  on  a  search  string  

!   An  event  type  is:  –   A  meta  field  based  on  a  search  –   A  way  of  classifying  data  for  searching  and  reporJng  –   Created  by  users  –   Useful  for  user  knowledge  capture  and  sharing  

Page 19: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Classifying  Groups  of  Events  

19  

Page 20: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Create  Event  Type  for  Unknown  Login  

20  

1 2

3

Page 21: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Create  Event  Type  for  Unknown  Login  

21  

5

4

Page 22: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Create  Event  Type  for  Known  Login  

22  

1 2

3

Page 23: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Create  Event  Type  for  Known  Login  

23  

5

4

Page 24: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Color  Coding  Events  in  5  

24  

You  can  color  code  event  types  in  Splunk  Enterprise  5,  but  not  using  the  Create  >  Event  type  dialog  

12

3

4

Page 25: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

OK,  So  Now  What?  

25  

Now  you  can  search  using  the  even-ype  field    

Page 26: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

What’s  the  Big  Deal?  

26  

Because  using  a  report  (saved  search)  is  easier  

Page 27: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Here’s  the  Value  –  Splunk  Enterprise  6  

27  

Page 28: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Here’s  the  Value  –  Splunk  Enterprise  6  

28  

Page 29: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Here’s  the  Value  –  Splunk  Enterprise  5  

29  

Page 30: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

But  Wait,  There’s  More!  

30  

Page 31: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

EliminaJng  the  Extraneous  Event  Types  

31  

OR  

Page 32: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

The  Finished  Product!  

32  

Page 33: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Or  Perhaps?  

33  

Page 34: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

     Oh,  There’s  Just  One  More  Thing  

34  

                                   If  only  I  could  use  a  wildcard  in  a  tag  (and  if  pigs  could  fly)...  

Page 35: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

     Oh,  There’s  Just  One  More  Thing  

35  

                                   If  only  I  could  use  a  wildcard  in  a  tag  (and  if  pigs  could  fly)...  

1

2

3

Page 36: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Apply  a  Tag  to  the  Event  Type  

36  

4

5

6

Page 37: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Search  for  the  Event  Type  

37  

Page 38: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Things  to  Remember  About  Event  Types  

38  

!   Event  type  names  are  case  sensiJve  !   Permissions  of  event  types  always  default  to  Private  !   Event  types  consist  of  simple  searches  (no  search  commands)  !   Don't  go  crazy!  Excessive  event  typing  can  cause  degradaJon  of  search  performance    

!   You  can  remove  unwanted  event  types  from  reports  using    search  commands  

Page 39: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Alerts  

39  

Page 40: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Scenario  –  24/7  Monitoring  

40  

!   Servers  and  devices  run  24/7  !   Hackers,  bugs,  and  crashes  are  lurking  24/7  !   Humans  aren’t  24/7  –  they  need  things  like  sleep,  vacaJons,  lunch,  or  just  a  few  minutes  away  from  staring  at  a  screen  in  a  freezing  cold  server  room!  

Page 41: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Splunk  Alerts  Never  Sleep!  

41  

!   Searches  can  be  run  on  a  schedule  and  be  setup  to  “do  something”  based  on  the  results    

!   We  call  these  alerts  

Page 42: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

AlerJng  Scenario  –  Public  User  Logins  

42  

!   Hackers  need  a  user  name  AND  password  to  access  your  systems  

!   Public  web  pages  oVen  contain  names  of  CEOs,  sales  folks,  etc.    

Page 43: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Create  Your  Tags  

43  

Page 44: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Search  for  the  Tag  and  Create  the  Alert  

44  

Page 45: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Set  the  Alert  Schedule  

45  

Page 46: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Configure  Alert  AcJons  and  Permissions  

46  

Page 47: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Alert  Created!  

47  

Page 48: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Alert  Manager  

48  

Splunk  Enterprise  5  Splunk  Enterprise  6  

Page 49: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

QuesJons  [email protected]  

49  

Page 50: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

Next  Steps  

50  

Download  the  .conf2013  Mobile  App  If  not  iPhone,  iPad  or  Android,  use  the  Web  App    

Take  the  survey  &  WIN  A  PASS  FOR  .CONF2014…  Or  one  of  these  bags!    Sign  up  for  Splunk  EducaLon!  

1  

2  

3  

Page 51: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

AddiJonal  Resources  

51  

www.splunk.com/goto/educaJon  !   CreaJng  Splunk  Enterprise  6  Knowledge  Objects  (4.5  hour  class)  !   Searching  and  ReporJng  with  Splunk  (9-­‐hour  class)  !   Advanced  Searching  and  ReporJng  with  Splunk  (9-­‐hour  class)  

Page 52: LincolnBowser* - .conf2017 | The 8th Annual Splunk … ·  · 2017-10-13Full*Syntax* ShortForm* ... Humans*aren’t24/7*–they*need*things*like*sleep,*vacaons,*lunch,* ... Splunk*Alerts*Never*Sleep!*

THANK  YOU  


Recommended