Splunk Search

Splunk returns different result with search query and Dashboard

kumarnis45
Path Finder

Hi,

 

  I am running a basic search query in splunk search directly with command such as

query:

sourcetype=aws*-cloudwatch-logs file.txt | rex "RequestId: (?<reqid>[\S+]*)\s" | table reqid | dedup reqid

 

it return the output reqid as "72830b96-c6g3-21fg-0063-ae728c68c1fc"

 

But if i run the same command through the splunk dashboard splunk returing the complete raw data which i dont need. why splunk dashboard return a raw result rather than a single output?

 

Any help is appreciated.

 

Thanks.

Labels (1)
0 Karma

kumarnis45
Path Finder

I solved this issue by correcting the type of the dashboard as query.

0 Karma

efavreau
Motivator

@kumarnis45Check the dashboard settings by going into edit view, and check the query and the visualization are set to meet your expectations. I might guess the query is not exactly the same, or there are other things going on in the dashboard.
You are correct, that with the right configuration, the search and the dashboard should output the same data and the same visualization.

###

If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...