Dashboards & Visualizations

_time field in not in proper format when display inside the Dashboard Studio?

syazwani
Path Finder

Hi,

I need help to fine tuned my SPL Query. _time field is not properly formatted when we configure it in dashboard.

index=sslvpn sourcetype="sslvpnsourcetype"  action=failure
| iplocation accessIP
| search Country ="Canada"
| stats values(accessIP), count by user, _time, reason
| eval _time=strftime(_time, "%d/%m/%Y %I:%M:%S %p")
| table _time, user, values(accessIP), reason, count
| rename user as Username, values(accessIP) as "Access IP", reason as "Reason", count as Count



This is the result table(_time column) when running on search and reporting app:

syazwani_0-1666249549903.png

This is the result (_time column) when we configure in dashboard (Dashboard Studio):

syazwani_1-1666249618139.png

Please assist us. Thank you.

 

 



 

 

 

Labels (2)
0 Karma
1 Solution

syazwani
Path Finder

found the silly mistake... need to rename the _time column


| table _time, user, values(accessIP), reason, count
| rename user as Username, values(accessIP) as "Access IP", reason as "Reason",
_time as Time

 and it worked.....

View solution in original post

0 Karma

syazwani
Path Finder

found the silly mistake... need to rename the _time column


| table _time, user, values(accessIP), reason, count
| rename user as Username, values(accessIP) as "Access IP", reason as "Reason",
_time as Time

 and it worked.....

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

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