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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...