Splunk Enterprise

Field Transformation from Host Tags (tag::host)

jensparks
New Member

I'm looking to set up a field transformation (with no access to transforms.conf) for my department's logs to be able to differentiate our data centers and environments. For some reason, the configuration I've put in doesn't appear to be working, though no errors are returned.

Setup (made generic):

  1. A tag is configured on 'host' to be one of the following: app_prod_njw, app_prod_bel, app_preprod_njw, or app_preprod_bel
  2. A new private field transformation has been created with the following configuration:
    • name: app-env-datacenter
    • type: regex-based
    • Regular expression: app_(?<env>\w+)_(?<datacenter>.+)
    • Format: env::$1 datacenter::$2
    • Source key: tag::host
    • "Create multivalued fields" is not selected
    • "Automatically clean field names" is not selected

When I run a given search for my logs, however, I'm not seeing the field env or the field datacenter. 

I've also double-checked my regex and checked with a couple 

Is there some inherent misunderstanding in this setup? Is it not possible to do this against 'tag::host' as a source key?

Any and all help is appreciated!!!

~ Jen

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...