Leveraging Lookups and Subsearches
Leveraging Lookups and Subsearches
1 March 2023
Leveraging Lookups and Subsearches
turn data into doing™ 2 Copyright © 2023 Splunk, Inc. All rights reserved | 1 March 2023
Course Goals
• Use lookup commands
• Define subsearch
• Correlate events with subsearches
• Use the return command in a search
searched, a knowledge
manager must upload
the lookup file
• Lookup output fields only exist for the duration of the search
index=security sourcetype=linux_secure
index=security sourcetype=linux_secure
| lookup knownusers.csv user OUTPUT user
Note
If saving to a lookup definition, the
lookup table file or KV collection
must already exist.
| inputlookup averages.csv
• Upload and define the KML/KMZ file to Splunk (in this example, the
1
lookup is geo_lookup)
• Indicate the events data source that contains either a featureId or
2
location name field (or latitude and longitude; see next slide)
• Use a transforming command to aggregate data based on the
3
Excerpt from
knownusers.csv
10 associated events
• However, it is still unclear if these
src_ips gained network access
Outer search
index=security sourcetype=linux_secure "accepted"
AND ( ( src_ip="109.169.32.135" ) OR ( src_ip="128.241.220.82"
) OR ( src_ip="141.146.8.66" ) OR ( src_ip="143.139.165.91" )
OR ( src_ip="144.251.73.1" ) OR ( src_ip="188.138.40.166" ) OR
( src_ip="194.215.205.19" ) OR ( src_ip="21.116.186.136" ) OR (
src_ip="211.166.11.101" ) OR ( src_ip="52.175.19.220" ) OR (
src_ip="59.36.99.70" ) OR ( src_ip="63.239.32.178" ) OR (
src_ip="67.39.247.107" ) OR ( src_ip="69.175.97.11" ) OR (
src_ip="82.15.30.214" ) OR ( src_ip="87.194.216.51" ) )
| dedup src_ip
| table src_ip
Results
Inner Search
“Subsearch”
Outer Search
the network
• Filter outer search results by
3
index=security sourcetype=linux_secure
"failed password" src_ip!=10.*
| stats count by src_ip
| where count>10
| return $src_ip
index=security sourcetype=linux_secure
"failed password" src_ip!=10.*
| stats count by src_ip
| where count>10
| return ip=src_ip
Splunk Mobile
• Free app available to all Splunk Cloud
and Splunk Enterprise customers
• Analyze data and receive
actionable alerts on-the-go
with mobile-friendly dashboards
• iOS and Android
• See the Product Brief
• Download for iOS splk.it/ios
Splunk Cloud
Splunk Core
Recommended
Splunk Enterprise
App-Specific Offerings
For Splunk Add-Ons
Prerequisite Certification(s): Splunk Core Certified User Exam Congratulations! You are a...
• None Time to study! We suggest candidates looking to prepare for
this exam complete Fundamentals 1 or the following courses:
Prerequisite Course(s): • What is Splunk?
• None • Intro to Splunk
• Using Fields
• Scheduling Reports and Alerts
• Visualizations
• Statistical Processing
• Working with Time Recommended Next Step
• Leveraging Lookups and Subsearches
• Splunk Core Certified Power User
• Search Optimization
• Enriching Data with Lookups
• Data Models
See here for registration assistance.
Splunk Core Certified Power User
This entry-level certification demonstrates an individual's foundational competence of Splunk’s core software
Prerequisite Certification(s): Splunk Core Certified Power User Exam Congratulations! You are a...
• None Time to study! We suggest candidates looking to prepare for
this exam complete Fundamentals 2 or the following courses:
Prerequisite Course(s): • Visualizations
• None • Statistical Processing
• Working with Time
• Comparing Values
• Result Modification
• Correlation Analysis
• Search Under the Hood Recommended Next Steps
• Introduction to Knowledge Objects
• Splunk Core Certified Advanced Power User
• Creating Knowledge Objects
• Creating Field Extractions • Splunk Enterprise Certified Admin
• Data Models
• Using Choropleth • Splunk Cloud Certified Admin
Prerequisite Certification(s): Splunk Core Certified Advanced Power User Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to prepare for this exam
complete Fundamentals 3, Creating Dashboards, and Advanced
Searching & Reporting or the following courses:
Prerequisite Course(s):
• Using Fields
• None
• Working with Time
• Comparing Values
• Result Modification
• Leveraging Lookups and Subsearches
• Correlation Analysis
• Search Under the Hood Recommended Next Steps
• Multivalue Fields
• Splunk Enterprise Certified Admin
• Search Optimization
• Creating Field Extractions • Splunk Cloud Certified Admin
• Enriching Data with Lookups
• Data Models
• Using Choropleth
• Introduction to Dashboards
• Dynamic Dashboards
See here for registration assistance.
Splunk Cloud Certified Admin
This certification demonstrates an individual's ability to support the day-to-day administration and health of a
Splunk Cloud environment
Prerequisite Certification(s): Splunk Cloud Certified Admin Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to
prepare for this exam complete either the Splunk
Prerequisite Course(s): Cloud Administration or the Transitioning to
Splunk Cloud course.
• None
Both courses will equally prepare candidates for
the exam, but are tailored to meet the needs of
the individual based on prior Splunk experience.
Prerequisite Certification(s): Splunk Enterprise Certified Admin Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking to
prepare for this exam complete the following courses:
Prerequisite Course(s):
• Splunk System Administration
• None • Splunk Data Administration
Prerequisite Certification(s): Splunk Enterprise Certified Architect Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We require candidates looking to register for
• Splunk Enterprise Certified Admin this exam to complete the following prerequisite courses:
• Architecting Splunk Enterprise Deployments
Prerequisite Course(s): • Troubleshooting Splunk Enterprise
• Splunk Cluster Administration
• Architecting Splunk Enterprise Deployments • Splunk Deployment Practical Lab
• Troubleshooting Splunk Enterprise
Candidates who are Splunk Enterprise Certified Admin
• Splunk Cluster Administration and have completed all of the above courses will automatically
• Splunk Deployment Practical Lab receive an exam authorization for the Splunk Enterprise Recommended Next Steps
Certified Architect exam within 5-7 business days of receiving
their passing lab results. • Splunk Core Certified Consultant
Prerequisite Certification(s): Splunk Core Certified Consultant Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We require candidates looking to register
• Splunk Enterprise Certified Admin for this exam to complete the following prerequisite
courses:
• Splunk Enterprise Certified Architect
• Fundamentals 3, Creating Dashboards, Advanced
Searching & Reporting*
Prerequisite Course(s): • Core Consultant Labs
• Advanced Power User courses or digital badge* • Services Core Implementation
• Core Consultant Labs Candidates who are Splunk Enterprise Certified
• Indexer Cluster Implementation Architects and have completed all of the above courses
must contact [email protected] to request their
• Distributed Search Migration Core Consultant exam authorization. Recommended Next Steps
• Implementation Fundamentals • None
See here for registration assistance.
• Architect Implementation 1-3
*These Advanced Power User courses can be replaced with a Splunk
• Services Core Implementation Certified Advanced Power User badge or completion of the following
courses: • Correlation Analysis
• Using Fields • Result Modification
• Creating Field Extractions • Multivalue Fields
• Enriching Data with Lookups • Search Under the Hood
• Data Models • Introduction to Dashboards
• Search Optimization • Dynamic Dashboards
• Working with Time • Using Choropleth
• Leveraging Lookups and Subsearches
• Comparing Values
Splunk Certified Developer
This certification demonstrates an individual's expertise in drilldowns, advanced behaviors and visualizations,
planning, creating, and packaging apps, and REST endpoints
Prerequisite Certification(s): Splunk Certified Developer Exam Congratulations! You are a...
• Splunk Core Certified Power User Time to study! We suggest candidates looking
AND to prepare for this exam complete the
following courses:
• Splunk Enterprise Certified Admin
• Creating Dashboards with Splunk*
OR • Advanced Dashboards & Visualizations
• Splunk Cloud Certified Admin • Building Splunk Apps
• Developing with Splunk’s REST API
Prerequisite Course(s): This course may also be substituted with the Recommended Next Steps
• None following newly-launched courses:
• None
• Introduction to Dashboards
• Dynamic Dashboards
• Using Choropleth
See here for registration assistance.
Splunk Enterprise Security Certified Admin
This certification demonstrates an individual's ability to install, configure, and manage a Splunk Enterprise
Security deployment
Prerequisite Certification(s): Splunk IT Service Intelligence Certified Congratulations! You are a...
• None Admin Exam
Time to study! We suggest candidates looking to
Prerequisite Course(s): prepare for this exam complete the following
• None course:
• Implementing Splunk IT Service Intelligence
Prerequisite Certification(s): Splunk SOAR Certified Automation Congratulations! You are a...
• None Developer Exam
Time to study! We suggest candidates looking to
Prerequisite Course(s): prepare for this exam complete the following courses:
• None • Administering SOAR (Phantom)
• Developing SOAR (Phantom) Playbooks
• Advanced SOAR (Phantom) Implementation
Thank You