Splunk Search

Porting ArcSight content to Splunk - compare between two fields of the same event

dragoslungu
Explorer

Hi,

I need to port ArcSight content to Splunk and I'm afraid I stumbled upon a fundamental difference on how to implement filters in ArcSight vs. saved searches in Splunk.

How to filter out events by comparing two event fields against each other ?

For instance, this is a simple search on Windows events and I want to list all the events where the "host" field is different from "dest" field

by searching for host!=dest, I get all events, even those where host=dest.

If I'm comparing each of the fields to constants or strings, it works; the problem is how to compare between two event fields.

I hope I made sense and I'd appreciate any hint.

Thank you.

0 Karma

dragoslungu
Explorer

SOLVED

you need to use "where" operator:

index=* | where host!=dest

Thanks !

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

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 ...