Getting Data In

How create a tag based on field name ?

TanyaCnd
Loves-to-Learn Lots

Hi,

I am trying create tags based on index and field name .  Log:
1, User.field1, User.field2, User.field3

2, Admin.field1, Admin.field2, Admin.field3

3, Admin.field1, Admin.field2, Admin.field3

I want tag User.* fields with tag User and Admin.* with Admin. So, when we search with tag User only User events listed 

Thanks

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @TanyaCnd,

why don't you try to use two different tags?

e.g:

  • USER or ADMIN for the first one
  • FIELD1 FIELD2 FIELD3, etc... for the second one

then you can use them for your searches:

tag=ADMIN tag=FIELD1

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...