Getting Data In

How to pick only non comma (",") related events and show in table?

akshayinnamuri
Loves-to-Learn Lots

Hi have a results from my mail index

say log look like below

sender=abc recipient=xyz@sample.com,ghi@nonsample.com country=abc

sender=def recipient=team@nonsample.com country=xyz

sender=gfh recipient=tip@nonsample.com country=efg

sender=abc recipient=none@sample.com,sample@nonsample.com country=pqr

I want to shows in a table only the non comma separated recipients only (as highlighted in bold where there are no multiple recipients)

 

can some one help me on this

 

Labels (2)
Tags (1)
0 Karma

akshayinnamuri
Loves-to-Learn Lots

Thanks all,
above didnt work..
however I tried 
| eval recipient=split(recipient,","), rec_count=mvcount(rcpt)
| where rec_count=1
|table ...

 

and got the result

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @akshayinnamuri,

You can simply filter them by using below;

| search NOT sender=*,*
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I think @scelikok meant

| search NOT recipient=*,*
0 Karma

scelikok
SplunkTrust
SplunkTrust

Yes @ITWhisperer , thank you for correction

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...