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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...