Splunk Search

how to append original search result with the table

cyberportnoc
Explorer

"number of scan:" | convert timeformat="%Y-%m-%d" ctime(_time) AS date | table source, date, Event

there is no event column which i think is search result

Tags (1)
0 Karma

niketn
Legend

I am not sure but if you need to show raw event data you should use _raw. Also if you just want to format time differently you should use fieldformat.

Try the following search :

<YourBaseSearch>
| fieldformat _time=strftime(_time,"%Y-%m-%d")
| table source, date, _raw

PS: if your intent is to group events together by day you should use timechart command to aggregate the data.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

cyberportnoc
Explorer

this is it, really thanks

0 Karma

niketn
Legend

@cyberportnoc, I have converted to answer. Please accept.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

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