Splunk Search

eval and coalesce return unicode list. How to separate each item into a new row?

zhatsispgx
Path Finder

So when I run the following search, 'event_name' returns a list of all event_name values which match the coalesce(src_ip,host_ip). The output looks to be a python unicode list. i.e. : [u'itemnumber1',u'itemnumber2','itemnumber3'] etc.

sourcetype=suricata OR sourcetype=nessus_scans AND risk!=None | 
eval src_ip = coalesce(src_ip,host_ip) | 
table msg, src_ip, dst_ip, dst_port, event_name, risk

How would i make this so each 'itemnumber(n)' would return a new row, or pretty formatting so that its more readable?

1 Solution

sundareshr
Legend

Try this

 sourcetype=suricata OR sourcetype=nessus_scans AND risk!=None |  eval src_ip = coalesce(src_ip,host_ip) | makemv event_name delim="," | mvexpand event_name | table msg, src_ip, dst_ip, dst_port, event_name, risk

View solution in original post

0 Karma

sundareshr
Legend

Try this

 sourcetype=suricata OR sourcetype=nessus_scans AND risk!=None |  eval src_ip = coalesce(src_ip,host_ip) | makemv event_name delim="," | mvexpand event_name | table msg, src_ip, dst_ip, dst_port, event_name, risk
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...