Is there a way to show the source for an event in the results for a search? I am wanting to see the complete source for every row of the results. Put simply the information you would see for a selected row when you manually click into event by "Event actions --> Show Source" and get a fresh page that shows the source info. I'm looking to see that info for every row on the screen.
I understand how to 'Pick one row, then click that dropdown to see the source'.
Please note the below does not answer the question. The answer below tells how to 'for each' manually see the source for one event (the one you click into): https://answers.splunk.com/answers/289234/how-to-display-the-entire-source-under-each-event.html
You're right, when you use table, it does eliminate line breaks... but they are still there just not being displayed properly.
index=INDEX | rex max_match=0 "^(?<rawlines>.+)\n+" | eval newraw=mvindex(rawlines,0,-1) | table newraw
Oddly....This search yields what looks like empty/blank results:
index=myindex "NullPointerException" | rex max_match=0 "^(?.+)\n+" | eval newraw=mvindex(rawlines,0,-1) | table newraw
Whereas this old 'manual query' I have been using before posting here yields rows where I can manually click into each one and see the source:
Results now: https://imgur.com/a/iu9Vqtj
Thank you for that quick answer. But that does not seem to show the exact same info. Manually clicking "Event actions --> Show Source" for a result row seems to include information spanning across line breaks that happen inside the log entry. That is, you see a full stacktrace even though the stacktrace has linebreaks. Whereas adding "table _raw" does not show all those lines.
"Event actions --> Show Source" is a workflow action and a workflow action can only be created at event-level (meaning they apply to an entire event), field-level (meaning they apply to specific fields within events), or both. You cannot create it for all events.