Splunk Enterprise

Compare two fields and do not display if the values ​​are the same.

leandromatperei
Path Finder

Hey Guys,

I have the query below that brings me the values ​​of the fields in a table, however I need that when the field "name_genesys" is equal to the field "user_genesys" cannot be displayed in the table, is there any way to restrict this view?

 

index=teste
| table  _time, object_genesys, name_genesys, DBID_genesys, type_genesys, configuration_genesys, user_genesys  | sort - _time

 

 

Results:

_time object_genesys name_genesys DBID_genesys type_genesys configuration_genesys user_genesys

2020-10-15 14:04:11.259cfg1default134452ConfigurationServercsp243default
2020-10-15 14:04:09.364cfg212343443434Configureagd_tm3agent1

 

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use a where clause to filter out undesired events.

index=teste
| where NOT name_genesys=user_genesys
| table  _time, object_genesys, name_genesys, DBID_genesys, type_genesys, configuration_genesys, user_genesys  
| sort - _time

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use a where clause to filter out undesired events.

index=teste
| where NOT name_genesys=user_genesys
| table  _time, object_genesys, name_genesys, DBID_genesys, type_genesys, configuration_genesys, user_genesys  
| sort - _time

 

---
If this reply helps you, Karma would be appreciated.
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 ...