Splunk Search

|search Necessary after DBXQUERY?

lennys26
Communicator

When using DBXQUERY, is the a |search needed after the query?

 

 

 

| dbxquery connection="DRTP-Connection" query="
            SELECT
                <X, Y, Z>
            FROM <wherever>
            WHERE <wherever>;" 
| search
| table X, Y, Z
| sort - Z

 

 

 

 My query appears to work either way, but I have often been critical about using extra 'search' commands within a query, so I am curious as to whether there is a performance hit.

Labels (1)
Tags (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Have a look at the job inspector for both versions of the query (with and without the extra search). If it is working without the extra search, personally, I would remove it 😀

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have a look at the job inspector for both versions of the query (with and without the extra search). If it is working without the extra search, personally, I would remove it 😀

0 Karma

lennys26
Communicator

That's what I was thinking. The job inspector shows no noticeable difference so I will remove it.

Thanks.

 

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...