25
Copyright © 2015 Splunk Inc. Holly Willey Sr. Sales Engineer, Splunk Intro to Splunk for DBAs

Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Copyright  ©  2015  Splunk  Inc.  

Holly  Willey  Sr.  Sales  Engineer,  Splunk  

Intro  to  Splunk    for  DBAs  

Page 2: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Disclaimer  

2  

During  the  course  of  this  presentaDon,  we  may  make  forward  looking  statements  regarding  future  events  or  the  expected  performance  of  the  company.  We  cauDon  you  that  such  statements  reflect  our  current  expectaDons  and  esDmates  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  presentaDon  are  being  made  as  of  the  Dme  and  date  of  its  live  presentaDon.  If  reviewed  aPer  its  live  presentaDon,  this  presentaDon  may  not  contain  current  or  

accurate  informaDon.  We  do  not  assume  any  obligaDon  to  update  any  forward  looking  statements  we  may  make.    

 In  addiDon,  any  informaDon  about  our  roadmap  outlines  our  general  product  direcDon  and  is  subject  to  change  at  any  Dme  without  noDce.  It  is  for  informaDonal  purposes  only  and  shall  not,  be  incorporated  into  any  contract  or  other  commitment.  Splunk  undertakes  no  obligaDon  either  to  develop  the  features  

or  funcDonality  described  or  to  include  any  such  feature  or  funcDonality  in  a  future  release.  

Page 3: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Understanding  the  Mindset  

DBAs  are  responsible  for  the  most  important  data  repositories  –  mission  cri6cal  systems  

 RDBMS  Failure  without  backup  or  standby  –  worst  case?  Business  IP  lost  =  business  failure  

3  

Page 4: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

What  MaZers  

4  

Page 5: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Agenda  •  Indexing  &  Searching  •  Architecture  •  Demo  

5  

Page 6: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Indexing  &  Searching  

Page 7: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

7  

Rise  of  Polyglot  Persistence  

Key-­‐Value    store  

E-­‐commerce    Pla>orm  

Completed  Orders  

Session  Data  

Product    Catalog  

     Customer  Social  Graph  

Document  store  

RDBMS   Graph  store  

Page 8: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

8  

Collect  &  Index  Machine  Data  

Page 9: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

9  

Forwarders  &  Indexers  

Forwarders  with  load  balancing  

Indexers  

Page 10: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

10  

Inputs  

Breaking  a  stream  of  data  into  lines  

Set  Dmestamp  and  merge  lines  (if  appropriate)  Annotate  event  w/metadata  (keys  for  host,  source,  sourcetype)  and  transform  per  transform  rules  

Writes  compressed  raw  data    &  index  files  on  disk  

Indexing  Pipeline  Data  

TCP/UDP  

Monitor  

Scripted  

Page 11: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

11  

Search  Processing  Language  (SPL)  SQL   SPL  

SELECT *  FROM mytable  

source=mytable  

SELECT *  FROM mytable  WHERE mycolumn=5  

source=mytable mycolumn=5  

SELECT mycolumn1, mycolumn2  FROM mytable  

source=mytable  | FIELDS mycolumn1, mycolumn2  

SELECT *  FROM mytable  WHERE (mycolumn1="true" OR mycolumn2="red") AND mycolumn3="blue"  

source=mytable  AND (mycolumn1="true" OR mycolumn2="red")  AND mycolumn3="blue"  

Page 12: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

12  

Popular  SPL  Commands  Command   Descrip6on  

dedup   Removes  subsequent  results  matching  a  specified  criteria  

head/tail   Returns  the  first/last  number  n  of  specified  results  

top/rare Displays  the  most/least  common  values  of  a  field  

timechart Create  a  Dme  series  chart  and  corresponding  table  of  staDsDcs  

transaction Groups  search  results  into  transacDons  

Page 13: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

13  

Page 14: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

14  

Terminology  RDBMS   Splunk  

Query   Search  Table/View   Search  Results  Index   Index  Row   Result/Event  Column   Field  Database/Schema   Index/App  

Page 15: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Architecture    

Page 16: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

16  

Frozen  WARM   COLD  HOT  

Hot  –  Newest  buckets  of  data  that  are  sDll  open  for  write  Warm  –  Recent  data  but  closed  for  wriDng  (read  only)  Cold  –  Oldest  data,  commonly  on  cheaper,  slower  storage  

Frozen  –  No  longer  searchable,  deleted  or  commonly  archived  data  

RotaDon  &  RetenDon  

Page 17: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

17  

Page 18: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

18  

Load  Balancer  

Search  Head  Cluster  

Indexer  Cluster  

Forwarders  with    

Load  Balancing  

Cluster  Members    +  1  Captain  

Peer  Nodes  (Search  Peers)    +  1  Master  Node  

Page 19: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

19  

ReplicaDon  Factor  =  3  

Index  Cluster  Peer  Nodes    

Forwarder  

Page 20: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

20  

MulDsite  Clusters  Site  1  -­‐  Boston   Site  2  -­‐  Philadelphia  

Forwarders  with    

Load  Balancing  

Peer  Nodes    

Peer    Nodes  

 

Search  Head   Search  Head  Master  Node    

Page 21: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

21  

Time  series  nature  of  Splunk  indexing  is  uniquely  suited  to    offloading  logs    Ideal  for  centralized,  consolidated  reten6on  &  analysis  of:  •  Standard  audit  records    •  Fine  grained  audiDng  trails  •  Listener  logs  •  Alert  logs  

Compliance  Requirements  

Page 22: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Demo  

Page 23: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Apps  

23  

  Splunk  Add-­‐on  for  Oracle  Database  hZps://splunkbase.splunk.com/app/1910/  

  DB  Connect  hZps://splunkbase.splunk.com/app/2686/  

  Oracle  WebLogic  App  for  Splunk  hZps://splunkbase.splunk.com/app/1340/  

Page 24: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

Resources  

24  

•  Real-­‐Time  Oracle  11g  Log  File  Analysis  hZps://pmdba.files.wordpress.com/2013/12/real-­‐Dme-­‐oracle-­‐11g-­‐log-­‐file-­‐analysis2.pdf  

  Search  Reference  –  Splunk  for  SQL  Users  hZp://docs.splunk.com/DocumentaDon/Splunk/latest/SearchReference/SQLtoSplunk  

  Exploring  Splunk  book  in  iOS  /  Kindle  /  PDF  versions  hZp://www.splunk.com/goto/book  

  Quick  reference  guide  hZp://www.splunk.com/web_assets/pdfs/secure/Splunk_Quick_Reference_Guide.pdf  

•  Splunk  answers  hZp://answers.splunk.com  

  Splunk  blogs  hZp://blogs.splunk.com  

  Splunk  educaDon  hZp://www.splunk.com/view/educaDon/SP-­‐CAAAAH9  

•  Free  eTraining    hZps://inter.viewcentral.com/reg/splunk/elearning  

Page 25: Intro*to*Splunk** forDBAs · 7 Rise*of*PolyglotPersistence* KeyValue%% store% Ecommerce%% Plaorm Completed% Orders Session Data% Product%% Catalog Customer SocialGraph Document% store%

THANK  YOU