Splunk Search

Time part is discarding

sheshanath
Loves-to-Learn Lots

I have a timestamp variable  EmailSendAt=2020-07-15 05:52:13.186 , 

Whenever I am using
stats value(EmailSendAt) as time..

It shows me only Date part.. Time part is discarding. (I used table also but no change happen)

Labels (1)
0 Karma

to4kawa
Ultra Champion
index=_internal |head 1| fields _raw _time 
| eval _raw="EmailSendAt=2020-07-15 05:52:13.186 , "
| rename COMMENT as "the logic"
| kv

your fields extractions is wrong. try kv

0 Karma

sheshanath
Loves-to-Learn Lots

EmailSendAt is a field and whenever I pull this field with by 

stats values(EmailSendAt) as time .... it shows only date part.

 

For example suppose 

EmailSendAt=2020-07-15 05:52:13.186

then using  stats values(EmailSendAt) as time  only shows me date part. Please help

.

Thanks 

0 Karma

to4kawa
Ultra Champion

try kv before stats

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...