Splunk Dev

exclude a column from a timechart table

gcusello
SplunkTrust
SplunkTrust

Hi at all,
I have a search that extract a time distribution by tag::eventtype:

index=my_index | timechart count by  tag:: eventtype

e.g.

_time            tag1   tag2   tag3
2017-05-28    4         3         5
2017-05-29    2         6         4
2017-05-30    4         5         2

Events can have more than one tag:: eventtype and this is the problem, because I'd like to exclude one column (e.g. tag3) from results without exclude results from other tag:: eventtype.
In other words if I put in my search tag:: eventtype!=tag1 results in tag1 are different because events that have both tag1 and tag3 are excluded.

Is it possible to exclude these events without modify other results?

Thank you in advance.

Bye.

Giuseppe

Tags (1)
0 Karma
1 Solution

rjthibod
Champion

Do you know the tag you want to exclude? If so, why cant you add | fields - tag3 after the timechart?

View solution in original post

0 Karma

rjthibod
Champion

Do you know the tag you want to exclude? If so, why cant you add | fields - tag3 after the timechart?

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...