Splunk Search

How do I create an alert that is triggered if group name exists in a lookup table?

AL3Z
Builder

Hi,
I want to create an alert that triggers when a user_name  exist in a lookup table (e.g. group_names.csv). But I'm not sure how to create the search string for this. The fields I'm using in the group_names.csv lookup table is group_names type as follows:

If the user_name matches group_names listed in the table, the alert should triggered. Any help on how to do this are much appreciated.

Thanks..

Labels (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

To match user_name with group_names listed in a lookup, you can use a subsearch if there is no other condition that you need to calculate.

<some additional filters>
  [ | inputlookup group_names.csv
  | rename group_names as user_name ]
| stats count by user_name

Hope this helps.

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...