Splunk Search

Longer Period of Time showing Fewer Results??

essklau
Path Finder

Hi,

I have a search which returns 37 results for one date (May 30), but 0 results for May 30-Jun2. I am failing to see in the search anything that should be using time or cancelling results from a longer search period.

The search is:

eventtype=mssql-audit class_type=U | lookup dm_audit_actions action_id OUTPUT name
| join host, session_id, server_principal_id [ search eventtype=mssql-audit class_type="*" succeeded="true" src_ip="*" | eval src_ip=if(src_ip=="local machine",host,src_ip) | stats values(src_ip) as src_ip by host,session_id,server_principal_id ]

So why does a search give me results for a period of time, but no results for "period of time" + a day?

Any suggestions would be appreciated.

Tags (1)
0 Karma

somesoni2
Revered Legend

Could you check if individual searches (main search and subsearch) are returning data, for the period May30-Jun02, independently? and have matching events so that join can be applied?

0 Karma

hagjos43
Contributor

try this to help diagnose your problem.

Apply a _time bucket within your query and do a |stats count by _time

| bucket _time span=24h | stats count by _time
0 Karma

essklau
Path Finder

I switched the span to 1h. There are events in the one day search that break down as expected by the hour. The one day + more days search still returns zero results.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...