The Splunk AI Assistant for SPL leverages Gen-AI to simplify the learning curve of Search Processing Language (SPL). Whether you’re a seasoned Splunk expert or a new user, this app enables you to write, understand, and optimize SPL queries, helping you extract value from your data faster than ever. From parsing data to enhancing security investigations, the AI Assistant is your new best friend for Splunk analytics.
Example prompt: What data is being collected in the environment?
Query: | tstats values(sourcetype) AS sourcetypes where index=* BY index
Example prompt: How do I parse a timestamp string in the following format "01-Jan-2024 12:34:00 PM"?
Query: | makeresults | eval timestamp_string="01-Jan-2024 12:34:00 PM" | eval parsed_timestamp=strptime(timestamp_string, "%d-%b-%Y %I:%M:%S %p") | table parsed_timestamp
Example Prompt: Search for allowed network traffic from <<some region>> by src_ip IP address
Query: index=<<index>> tag=network action=allowed src_ip=* | iplocation src_ip | search Region=<<some region>>
Example Prompt: Search for exceptions and stack traces in application logs
Query: index=<<index>> sourcetype=<<sourcetype>> linecount>3 (unhandled OR exception OR traceback OR stacktrace)
Example Prompt: Write SPL to show the runtime schedule of saved searches
Query: | rest /services/saved/searches | search is_scheduled=1 | table title, cron_schedule, next_scheduled_time
Example Prompt: How do I enrich data with fields from a lookup <<lookupfile.csv>>?
Query: index=<index> sourcetype=<sourcetype> | lookup <<lookupfile.csv>> <<lookup_field>> AS <<data_field>>
The Splunk AI Assistant for SPL transforms the way you interact with your data, enabling faster insights and greater efficiency. Download it today and start discovering its potential.
If you’d like to dive deeper into all the use cases, examples and other useful command education prompts, 👉 Read the full article here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.