Splunk Knowledge Objects>
• Knowledge Objects add knowledge to and enrich your
data
• User or app created
• Include
• Saved searches, field extractions, tags, event types, lookups, reports,
alerts, data-models, and more
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Saved Searches
• Can be saved as reports, alerts, dashboard panels, or
event types
• Defined in [Link]
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Field Extractions
• Fields can be extracted using the field extraction editor
• Regex or Delimiter
• Defined in [Link]
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Tags
• Allow you to assign names to specific field and value combinations
• Example: you might have a server named
[Link]
[Link]
© Adam Frisbee, [Link], image from Open Clipart
Splunk Knowledge Objects>
Tags
• You know that this server is the mail server for the eastern UK
region and it resides in building 1433
• Splunk and other users do not know that
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Tags
• Create a tag!
• Tag=Mail-East-UK
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Event Types
• A named saved search
• A “tag +”
• Suppose you have a search that your organization runs
frequently, perhaps even with small additions
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Event Types
• Instead of typing that in every time, just create an
event type!
• Eventtype=EastUSErrors
• You can even include tags!
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Lookups
• Add custom fields to events from external sources, like
csv files
[Link]
Region Code Region Name
1012 West US
Not user friendly 2443 East US User friendly
3839 West UK
4443 East UK
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Lookups 2
1
3
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Lookups
| lookup <lookup-table-name> <lookup-field1>
AS <event-field1>
| lookup [Link] “Region Code” AS
regcode
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Data Models
• Hierarchically structured data set that includes
• Events
• Searches
• Transactions
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Data Models
• Event objects contain
• Constraints
• A search string broken down into a hierarchy
• host=router1
• sourcetype=csv
• Attributes
• Fields and properties associated with the event
• evals, lookups, extracted fields
© Adam Frisbee, [Link]
Splunk Knowledge Objects>
Data Models
• Power the Splunk Pivot tool
• To get to the Pivot tool
• Through the datasets page
• Through the data model page in settings
• Through the search results page, visualization tab
© Adam Frisbee, [Link]
Demo: Knowledge Objects
© Adam Frisbee, [Link], image credit: Jack Moreh/Freerange Stock
Thanks, Splunkers!