Splunk Search

Searching issues in comparing data

user290317
Explorer

Hi Splunker beginner here.

I'm having an issue in forming the search syntax for comparing the biggest amount of client logs deleted accidentally on a current day as opposed to the average of the previous month. I'm here at the moment source="deleted.xml" earliest=-d ACCIDENTAL_DELETES > ...

0 Karma
1 Solution

somesoni2
Revered Legend

The pseudo search would be like this

source="deleted.xml" earliest=@d ACCIDENTAL_DELETES > ...
| stats count by client_indentifier_field
| where count>[search source="deleted.xml" earliest=-1mon@m latest=@mon ACCIDENTAL_DELETES > ..   | query to calculate last month's average | table average | rename average  as query]

View solution in original post

somesoni2
Revered Legend

The pseudo search would be like this

source="deleted.xml" earliest=@d ACCIDENTAL_DELETES > ...
| stats count by client_indentifier_field
| where count>[search source="deleted.xml" earliest=-1mon@m latest=@mon ACCIDENTAL_DELETES > ..   | query to calculate last month's average | table average | rename average  as query]

user290317
Explorer

With some additional play around with the syntax I managed to solve it. Thanks.

0 Karma

user290317
Explorer

To be more specific I'm searching for all the amounts of accidental deletes on the current day that supersedes the avg for the previous month.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

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 ...