Splunk Search

Is there a way in splunk to get the Custom sql query execution time ?

JBNB007
New Member

I am writing a custom sql dbxquery. When this custom query executes I want to know when it gets started and when its get completed.Based on that I want to create a performance report of this query

Can some one help me with this ?

Tags (1)
0 Karma

somesoni2
Revered Legend

If you're running your dbxquery as an adhoc Splunk search, then you can use "Inspect Job" to get the details about search execution including start time and executiontime. Alternatively, this should give your details of the execution. You can get the SID of the search

index=_audit  info=completed action=search (id=* OR search_id=*) <<PUT Search SID>>

If you're running your dbxquery as scheduled search, you can use scheduler logs to get the same info.

index=_internal sourcetype=scheduler savedsearch_name="PUT your Scheduled Search Name here"
0 Karma
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...