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!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...