• Save
SplunkLive! Hamburg / München Beginner Session
Upcoming SlideShare
Loading in...5
×
 

SplunkLive! Hamburg / München Beginner Session

on

  • 365 views

 

Statistics

Views

Total Views
365
Views on SlideShare
365
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

SplunkLive! Hamburg / München Beginner Session SplunkLive! Hamburg / München Beginner Session Presentation Transcript

  • Copyright*©*2013*Splunk*Inc.*Technical*Workshop*Beginner*Ma?hias*Maier,*CISSP*System*Engineer*
  • Agenda*•  GeGng*Started*with*Splunk*•  Search*•  Alert*•  Dashboard*•  Deployment*and*IntegraKon*•  Community*•  Help*&*QuesKons*2*
  • Make*machine*data*accessible,*usable**and*valuable*to*everyone.**3*
  • “TwoQthirds*of*all*IT*spending*is*just*to*sustain*the*business,*not*to*grow*or*transform*the*business”*4*Source:(Gartner,(IT(Metrics:(IT(Spending(and(Staffing(Report,(2010(
  • 5*Energy*Manufacturing*Shipping* RFID*Web*Services*Developers*App*Support*Telecoms*Networking*Desktops*Servers*Security*Data*Warehouse*Storage*Messaging*Shopping*Basket*Clickstream*GPS/Cellular*Virtual*Physical*Cloud*Online*Services**Machine*Data*Is*Pervasive*AddiKonal*Sources* Core*IT* CustomerQfacing*IT*
  • EnergyManufacturingShipping RFIDWebServicesDevelopersAppSupportTelecomsNetworkingDesktopsServersSecurityDataWarehouseStorageMessagingShoppingBasketClickstreamGPS/CellularVirtualPhysicalCloudOnlineServices*Machine*Data*Is*Pervasive*6*AddiKonal*Sources* Core*IT* CustomerQfacing*IT*" Machine*data*volumes,*sources*and*types*exploding*" 80Q95%*of*an*organizaKon’s*data*is*unstructured*" If*stored,*in*silos*throughout*the*organizaKon**" New*technologies*adding*to*data*explosion*(mobile*devices,*sensors,*GPS,*virtualizaKon,*cloud)*" Market*trends*makes*this*data*valuable*to*the*business*" Contains*a*categorical*record*of*acKvity*and*behavior*
  • 7*What*It’s*Like*In*The*Trenches*ServiceDeskApplica/onSupportSystemsAdministratorApplica/onDeveloperApplica/onDeveloperDatabaseAdministratorLog*call.*The*console*says*everything*is*green.*Java*monitoring*tools*don’t*show*anything*either.*Call*the*developer.*Stop*working*on*new*code*to*troubleshoot.*Need*producKon*logs!*Stop*what*they’re*doing*to*idenKfy*and*gather*producKon*logs*for*developer.*Manual*invesKgaKon*establishes*not*applicaKon*problem.***DBA*analyzes*audit*logs*which*points*to*bad*query.*Escalate. Escalate. Escalate. Respond. Escalate. Nowwhat?
  • And*When*The*Business*Needs*Intelligence...*8*IneedanewreportWe’ll*need*to*change*the**schema*for*that*Ineedtoseeitinreal/meOur*system*is*batch.*We’ll*need*a*new*system*What’sthetrendoverthelastyear?Sorry.*We*only*keep*7*days*of**data*online*
  • **Collect,*index*and*harness*your*machine*data*to*idenKfy*problems,*pa?erns,*risks*and*opportuniKes*and*drive*be?er*decisions**for*IT*and*the*business.*9*
  • Harnessing*Your*Machine*Data*10*Search*and*InvesKgate*Reac/veITsilochaosInvesKgate,*find*and*fix*problems*dramaKcally**faster*across*your*organizaKon*Proac/ve
  • Harnessing*Your*Machine*Data*11*Search*and*InvesKgate*ProacKve*Monitoring*Reac/veAutomaKcally*monitor*to*idenKfy*issues,*problems*and*a?acks*before*they**impact*your*customers*and*services*ITsilochaosProac/ve
  • Harnessing*Your*Machine*Data*12*Search*and*InvesKgate*ProacKve*Monitoring*OperaKonal*Visibility*Reac/veGain*endQtoQend*visibility*to*track*and*deliver*on**IT*KPIs*and*make*be?erQinformed*IT*decisions*ITsilochaosProac/ve
  • Harnessing*Your*Machine*Data*13*Search*and*InvesKgate*ProacKve*Monitoring*OperaKonal*Visibility*RealQKme**Business*Insights*Proac/veReac/veITsilochaosGain*realQKme*insight*from*operaKonal*data*to**make*be?erQinformed*business*decisions*
  • GeGng*Started*With*Splunk*
  • Install*Splunk*Start*Splunk*•  WIN:*Program*FilesSplunkbinsplunk.exestart•  Other:*/opt/splunk/bin/splunkstartwww.splunk.com/download*•  32*or*64*bit?*•  Indexer*or*Universal*Forwarder?*Splunk*Home*•  WIN:*Program*FilesSplunk*•  Other:*/opt/splunk*(ApplicaKons/splunk)*
  • Splunk*Licenses*Free*Download*Limits*Indexing*to*500MB/day*•  Enterprise*Trial*License*expires*arer*60*days*•  Reverts*to*Free*License*Features*Disabled*in*Free*License*•  MulKple*user*accounts*and*roleQbased*access*controls*•  Distributed*search*•  Forwarding*to*nonQSplunk*Instances*•  Deployment*management*•  Scheduled*saved*searches*and*alerKng*•  Summary*indexing*Other*License*Types*•  Enterprise,*Forwarder,*Trial*
  • 17*Splunk*Web*Basics*Browser*Support*•  Firefox*3.6,*10.x*and*latest*•  Internet*Explorer*6,*7,*8*and*9*•  Safari*(latest)*•  Chrome*(latest)*Default*on*install*is*h?p://localhost:8000**Index*some*data*•  Add*data*•  GeGng*Started*App*•  Install*an*App*(Splunk*for*Windows,**NIX)*
  • 18*Splunk*Web*Basics*Splunk*Apps*•  Splunk*Home*Q>*Find*more*apps*•  Apps*create*different*contexts*for*your*data*out*of*sets*of*views,*dashboards,*and*configuraKons*•  You*can*create*your*own!*Search*is*an*App*•  Summary*will*show*everything*you*have*indexed**•  Updated*in*realQKme*•  Click*on*any*source,*sourcetype,*or*host*to*look*at*events*
  • Search*Basics*
  • Searching*20*Search*>***Select*Time*Range*•  Historical,*custom,*or*realQKme*Using*the*Kmeline*•  Click*events*and*zoom*in*and*out*•  Click*and*drag*over*events*for*a*specific*range*
  • 21*Everything*is*searchable*Everything*is*searchable*•  **wildcard*supported**•  Search*terms*are*case*insensiKve*•  Booleans*AND,*OR,*NOT**–  Booleans*must*be*uppercase*–  Implied*AND*between*terms*–  Use*()*for*complex*searches*•  Quote*phrases**fail*&fail*&nfs&error&OR&404&error&OR&failed&OR&(sourcetype=access_*(500&OR&503))&login&failure &
  • Search*Assistant*22*Contextual*Help*•  advanced*type*ahead*History*•  search*•  commands*Search*Reference*•  short/long*descripKon*•  examples*suggests search termsand displays countupdates as you typeshows examples and helptoggle off / on
  • Searches*can*be*managed*as*asynchronous*processes*Jobs*can*be**•  Scheduled*•  Moved*to*background*tasks*•  Paused,*stopped,*resumed,*finalized*•  Managed*•  Archived*•  Cancelled*Job*Management*send to backgroundpause finalizecancel
  • 24*Tagging*and*Event*Typing*Even?ypes*for*more*humanQreadable*reports*•  categorize*and*make*sense*of*mountains*of*data*•  punctuaKon*helps*find*events*with*similar*pa?erns*Search*>*even?ype=failed_login*instead*of*Search*>*“failed*login”*OR*“FAILED*LOGIN”*OR*“AuthenKcaKon*failure”*OR*“Failed*to*authenKcate*user”*Tags*are*labels*•  apply*adhoc*knowledge*•  create*logical*divisions*or*groups*•  tag*hosts,*sources,*fields,*even*even?ypes*Search*>*tag=web_servers*instead*of*Search*>*host=“apache1.splunk.com”*OR*host=“apache2.splunk.com”*OR*host=“apache3.splunk.com”*
  • Search*Commands*25*Search*>*error*|*head*1*Search*results*are*“piped”*to*the*command*Commands*for:*•  ManipulaKng*fields*•  FormaGng*•  Handling*results*•  ReporKng*
  • Over*100*Commands!*26*splunk.com > Documentation > Search Referenceabstract accum addcoltotals addinfo addtotals af analyzefields anomaliesanomalousvalue append appendcols ar associate audit autoregress bin bucketchart cluster collect common contingency convert correlate counttable crawlctable dbinspect dedup delete delta diff discretize erex eval eventcount eventstatsexcerpt extract file fillnull folderize format gentimes head highlight iconify inputinputcsv inputlookup iplocation join kmeans kv kvform loadjob localize localoplookup macro makecontinuous makemv maketable map metadata multikvmvcombine mvexpand nomv outlier outlierfilter outputcsv outputlookupoutputtext overlap rangemap rare regex relevancy rename replace reverse runsavedsearch savedsplunk script scrub selfjoin sendemail set sichart sirare sistatssitimechart sitop slc stash strcat streamstats sumindex summaryindex tail testtimechart top transaction transam trendline typeahead typelearner typer uniquntable xmlkv xmlunescape xpath xyseriesh?p://www.splunk.com/base/DocumentaKon/latest/SearchReference/SearchCheatsheet*
  • Date*Name*Title*DEMO*
  • Field*ExtracKon*
  • Fields*29*Default*fields*•  host,*source,*sourctype,*linecount,*punct*etc.*•  View*on*ler*panel*in*search*results*or*all*in*field*picker*Where*do*fields*come*from?*•  PreQdefined*by*sourcetypes*•  AutomaKcally*extracted*keyQvalue*pairs*•  User*defined*
  • Extract*Fields*30*InteracKve*Field*Extractor*•  generate*PCRE*•  editable*regex*•  preview/save*props.conf!![mysourcetype]!REPORT-myclass = myFields!!transforms.conf!![myFields]!REGEX = ^(w+)s!FORMAT = myFieldLabel::$1 !ConfiguraKon*File*•  manual*field*extracKon*•  delimQbased*extracKons*Rex*Search*Command*!... | rex field=_raw "From: (?<from>.*) To: (?<to>.*)"!
  • Date*Name*Title**Technical*Workshops*GeGng*Started*User*Training*DEMO*
  • Saved*Search*&*Alert*Basics*
  • Saved*Searches*and*AlerKng*33*Find*Something*InteresKng?****OR**
  • AlerKng*34*Searches*run*on*a*schedule*and*fire*an*alert**•  Example:*Run*a*search*for*“Failed*password”*every*15*min*over*the*last*15*min*and*alert*if*the*number*of*events*is*greater*than*10*Searches*are*running*in*realQKme*and*fire*an*alert*•  Example:*Run*a*search*for*“Failed*password*user=john.doe”*in*a*1*minute*window*and*alert*if*an*event*is*found**
  • AlerKng*AcKons*35*•  Send*email*•  RSS*•  Execute*a*script*•  Track*in*Alert*Manager*
  • Report*&*Dashboard*
  • ReporKng*37*Build*reports*from*the*results*of*any*search**Select*type*of*report*(Values*over*Kme,*Top*Values,*Rare*Values)**and*on*which*fields*to*report*or*perform*staKsKcs* Choose*the*type*of*chart*(line,*area,*column,*etc)*and**other*formaGng*opKons*
  • ReporKng*Examples*38*•  Use*wizard*or*reporKng*commands*(Kmechart,*top,*etc)*•  Build*realQKme*reports*with*realQKme*searches*•  Save*reports*for*use*on*dashboards*
  • Dashboards*39*Create*dashboards*from*search*results*
  • Dashboard*Examples*40*
  • Splunk*Manager*41*Now*Manage*All*of*that*Cool*Stuff*You*Just*Created*(and*more!)*•  Permissions*•  Saved*Searches/Reports*•  Custom*Views*•  Distributed*Splunk*•  Deployment*Server*•  License*Usage….*
  • Date*Name*Title**Technical*Workshops*GeGng*Started*User*Training*DEMO*
  • Deployment*and*IntegraKon*
  • CollecKon*Indexing*Search*Core*FuncKons*Access*Controls*Stats/*AnalyKcs*Alerts* Dashboards*Reports*Apps*and*SoluKons*ApplicaKon*Monitoring*SDKUserInterface APIsIT*OperaKons*Security* Compliance*Business*AnalyKcs*Web*Intelligence*44*
  • Splunk*Has*Four*Primary*FuncKons*45*•  Searching*and*ReporKng*(Search*Head)**•  Indexing*and*Search*Services*(Indexer)**•  Local*and*Distributed*Management*(Deployment*Server)**•  Data*CollecKon*and*Forwarding*(Forwarder)*A*Splunk*install*can*be*one*or*all*roles…**
  • GeGng*Data*Into*Splunk*Agent*and*AgentQless*Approach*for*Flexibility*46*perf*shell*code*MountedFileSystemshostnamemount+syslogTCP/UDP+WMIEvent+Logs+PerformanceAc/veDirectorysyslogcompa/blehostsandnetworkdevicesUnix,LinuxandWindowshostsWindowshosts CustomappsandscriptedAPIconnec/onsLocalFileMonitoringlog+files,+config+files+dumps+and+trace+files+WindowsInputsEvent+Logs+performance+counters+registry+monitoring+AcAve+Directory+monitoring+virtualhostWindowshostsScriptedInputsshell+scripts+custom+parsers+batch+loading+AgentNlessDataInput SplunkForwarder
  • Understanding*the*Universal*Forwarder*47*Forward*data*without*negaKvely*impacKng*producKon*performance.*Scripts*Universal*Forwarder*Deployment*Logs* ConfiguraKons*Messages* Metrics*Central*Deployment*Management*Monitor*files,*changes*and*the*system*registry;*capture*metrics*and*status.*UniversalForwarder Regular(Heavy)ForwarderMonitor*All*Supported*Inputs** **RouKng,*Filtering,*Cloning** *Scripted*Inputs*****Splunk*Web* *Python*Libraries**Event*Based*RouKng**
  • Horizontal*Scaling*48*Load*balanced*search*and*indexing*for*massive,*linear*scale*out.*Forwarder***Auto*Load*Balancing*Distributed*Search*
  • MulKple*Datacenters*49*Headquarters*London* Hong*Kong* Tokyo* New*York*Distributed*Search*Index*and*store*locally.*Distribute*searches*to*datacenters,*networks*&*geographies.*
  • High*Availability,*On*Commodity*Hardware*50*Splunk*Universal*Forwarder*Pool*Constant*UpKme*" As*Splunk*collects*data,*it*keeps*mulKple*idenKcal*copies*" Data*integrity*and*resilience*without*a*SAN*" If*indexer*fails,*incoming*data*conKnues*to*get*indexed*" Indexed*data*conKnues*to*be*searchable*
  • High*Availability*51*Combine*auto*load*balancing*and*cloning*for*HA*at*every*Splunk*Ker.**Clone*Group*1*:*Complete*Dataset*Data*Cloning*&**Auto*Load*Balancing*Distributed*Search* Distributed*Search*Clone*Group*2*:*Complete*Dataset***Shared*Storage*
  • Service*Desk*Event*Console*SIEM*Send*Data*to*Other*Systems*52*Route*raw*data*in*real*Kme*or*send*alerts*based*on*searches.*
  • Integrate*External*Data*53*LDAP,*AD* Watch**Lists*CRM/ERP*CMDB*Correlate*IP*addresses*with*locaKons,*accounts*with*regions*Extend*search*with*lookups*to*external*data*sources.*
  • Integrate*Users*and*Roles**54*Problem*InvesKgaKon* Problem*InvesKgaKon* Problem*InvesKgaKon*Save*Searches*Share*Searches*LDAP,*AD**Users*and*Groups*Splunk*Flexible*Roles*Manage*Users*Manage*Indexes*CapabiliKes*&*Filters*NOT*tag=PCI*App=ERP*…*Map*LDAP*&*AD*groups*to*flexible*Splunk*roles.*Define*any*search*as*a*filter.*Integrate*authenKcaKon*with*LDAP*and*AcKve*Directory.*
  • Centralized*Licensing*Management*55*Problem*InvesKgaKon*Groups,*Stacks,*and*Pools*for*Enterprise*Deployments*
  • Deployment*Monitoring*56*Keep*Tabs*On*Your*Splunk*Enterprise*Deployment*Forwarders*Indexers*Sourcetypes*Licenses*
  • Support*and*Community*
  • Support*Through*the*Splunk*Community*58*Browse and share Appsfrom Splunk, Partners andthe Communitysplunkbase.splunk.comSplunkbase*Community-drivenknowledge exchangeand Q&Aanswers.splunk.com5 tracks, more than 40sessions, the smartestSplunk users togetherconf.splunk.com
  • Where*to*Go*for*Help*59*•  DocumentaKon*–  h?p://www.splunk.com/base/DocumentaKon*•  Technical*Support**–  h?p://www.splunk.com/support*•  Videos*–  h?p://www.splunk.com/videos*•  EducaKon*–  h?p://www.splunk.com/goto/educaKon*•  Professional*Services**
  • Thank*You*