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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...