Dashboards & Visualizations

Output of dashboard query is seen in Events section and not in Statistics and mode is getting changed to Fast mode

palshelk
New Member

Hi, 

Below is the dashboard query which works fine for EC2 Port Probe events but rest of the events are not displayed in the dashlet. when we check open in search option, we find events in the event column and not in statistics after changing the mode from fast to verbose. please help here.

index="aws_generic" source="aws.guardduty" detail.type=Discovery:S3/AnomalousBehavior*
| eval newtime=strftime(_time,"%m/%d/%y %H:%M:%S")
| rex field=host (?<service>.*):(?<cloudprovider>.*):(?<region>.*):(?<cluster>.*):(?<role>.*):(?<stagingarea>.*)
| stats sparkline(count) as history max(newtime) as "event time" by stagingarea detail.region detail.type detail.severity detail.description detail.accountId detail.id
| eval times=mvindex(times, 0, 2)
| sort - "event time" detail.severity
| table "event time","detail.accountId","detail.region","detail.severity","history","detail.type","detail.description"
| rename "event time" as "Event Time","detail.accountId" as "AWS Account ID","detail.region" as "AWS Region","detail.type" as "Finding Type","detail.severity" as "Severity","history" as "Event History","detail.description" as "Description"

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I am not sure why you are getting different results in Fast and Verbose mode, but there appear to be some oddities with your search:

| eval newtime=strftime(_time,"%m/%d/%y %H:%M:%S")

This creates a string - what is the maximum of a string?

| stats ... max(newtime) as "event time"

Field times does not exist (after previous stats command)

| eval times=mvindex(times, 0, 2)

I am not sure whether these make a difference though

0 Karma

palshelk
New Member

Hi, 

Tried changing it but seems no luck!

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...