This study plan incorporates Pomodoro Technique and Forgetting Curve strategies to ensure an efficient, structured, and retention-oriented learning approach for the SPLK-1002 exam. The tasks for each day are broken down in detail to guide you step by step.
Goals:
Tasks:
index=_internal.sourcetype and source.Goals:
stats command for data aggregation.Tasks:
stats:count, sum, avg, max, min.index=_internal | stats count BY sourcetype.host or source.index=web_logs | stats count, avg(response_time) BY status_code.Goals:
chart and timechart commands for visualizations.Tasks:
chart syntax and structure:index=web_logs | chart count BY http_status.timechart for time-based data:index=web_logs | timechart count span=1h.Goals:
search and where.Tasks:
search for basic filtering:index=orders | search quantity > 10.where for complex logic:index=orders | where quantity > 10 AND price < 50.AND, OR, NOT).Goals:
fields and eval.Tasks:
index=employees | fields + name, department.eval total_price = price * quantity.eval:eval price_category = if(price > 100, "High", "Low").Goals:
transaction and eventstats.Tasks:
transaction for event grouping:index=web_logs | transaction startswith="login" endswith="logout" maxspan=10m.eventstats:eventstats avg(price) AS avg_price BY category.Goals:
Tasks:
stats, chart, transaction).Goal: Understand how to manage fields in Splunk, including field extraction and customization.
Tasks:
Learn Automatic Field Extraction:
index=_internal) in the Splunk Search bar._time, source, host) in the Field Sidebar.Practice Manual Field Extraction:
Use the rex command to extract a field dynamically:
index=web_logs | rex field=_raw "user_id=(?<user_id>\d+)"
Verify the extracted field appears in the results table.
Test the fields Command:
Include specific fields:
index=web_logs | fields + user_id, session_id
Exclude specific fields:
index=web_logs | fields - eventtype, source
Hands-On Exercise:
rex, and limit results with fields.Goal: Learn how to use calculated fields and field aliases effectively.
Tasks:
Learn Calculated Fields with eval:
Create new fields based on existing data:
index=sales | eval total_price = price * quantity
Use conditional logic:
eval price_category = if(price > 100, "High", "Low")
Verify that the calculated fields are added to your results table.
Create Field Aliases:
Map raw field names to user-friendly names:
alias client_ip AS src
Test the alias with a search query:
search src=192.168.0.1
Hands-On Exercise:
rex, create a calculated field using eval, and verify aliases by searching the mapped field.Goal: Understand how to categorize and label events with tags and event types.
Tasks:
Learn Tags:
Assign tags to specific field values:
tag::status_code=ClientError
Test the tag with a search query:
tag=ClientError
Assign multiple tags to a single event (e.g., web and proxy).
Learn Event Types:
Create an event type:
ServerErrorsearch status_code=500Test the event type:
search eventtype=ServerError
Hands-On Exercise:
Goal: Simplify repetitive searches using macros.
Tasks:
Create a Static Macro:
Define a macro for a common search query:
search status_code=404 OR status_code=500
Save the macro as error_filter.
Test the macro:
`error_filter`
Create a Dynamic Macro:
Define a macro with parameters:
search status_code=$status$
Save the macro as dynamic_error_filter.
Test the macro with a parameter:
`dynamic_error_filter("404")`
Hands-On Exercise:
Goal: Create actionable links to external resources or dashboards directly from search results.
Tasks:
Learn GET Actions:
http://logs.example.com?ip=$src_ip$Learn Search Actions:
Create a Workflow Action that initiates a new search:
search index=web_logs src_ip=$src_ip$
Test the action to ensure it opens a new search window.
Hands-On Exercise:
Goal: Consolidate Week 2 topics through targeted practice and reflection.
Tasks:
rex, eval, alias, tag, and macro functionalities.rex and create aliases to normalize data.Goal: Evaluate your progress and address any knowledge gaps.
Tasks:
Goal: Understand how to create and manage Splunk data models, focusing on event datasets.
Tasks:
Understand Data Models:
Create an Event Dataset:
Open Settings > Data Models.
Create a new data model named Web Traffic.
Add an event dataset with the following definition:
index=web_logs
Save and validate the dataset.
Hands-On Exercise:
Query the dataset using:
| datamodel "Web Traffic" search
Goal: Learn to refine data models using Search datasets.
Tasks:
Add a Search Dataset:
Open the Web Traffic data model.
Add a child dataset (Search dataset) with the definition:
index=web_logs status_code=200
Save and validate the dataset.
Use Filters for Refinement:
Add a calculated field:
eval success_rate = count / total_count * 100
Test the field in your query:
| datamodel "Web Traffic" search | stats avg(success_rate)
Hands-On Exercise:
Create a search dataset for error events:
status_code=404 OR status_code=500
Goal: Understand how to use transaction datasets to correlate events.
Tasks:
Create a Transaction Dataset:
Web Traffic data model.session_id with:Test the Transaction Dataset:
Query the transaction dataset:
| datamodel "Web Traffic" transactions
Observe how events are grouped by session_id.
Hands-On Exercise:
Goal: Learn how to accelerate data models for improved performance.
Tasks:
Enable Acceleration:
Web Traffic data model.Test Acceleration:
Query the accelerated dataset:
| datamodel "Web Traffic" search | stats count BY status_code
Measure the response time compared to unaccelerated datasets.
Hands-On Exercise:
Goal: Understand the purpose and structure of the CIM Add-On.
Tasks:
Learn CIM Basics:
Review CIM Data Models:
Hands-On Exercise:
Validate data against the Authentication model:
| datamodel Authentication search
Goal: Learn how to normalize data fields and tags to match CIM standards.
Tasks:
Field Normalization:
Use props.conf to map raw fields to CIM-compliant names:
FIELDALIAS-src_ip = client_ip AS src
Add Tags:
Assign CIM tags to data:
tag::eventtype = authentication
Validate Tags:
Search with the CIM tag:
tag=authentication
Hands-On Exercise:
Goal: Consolidate knowledge of data models and CIM through practical applications.
Tasks:
Goal: Systematically review all topics covered in Weeks 1–3.
Tasks:
stats, chart, timechart).search, eval, fields).Goal: Simulate exam conditions to assess readiness.
Tasks:
Goal: Mentally prepare for the exam.
Tasks: