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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...