Splunk Enterprise

How to use a look up in q query with lower case tokens appended .

HenryFitzerald
New Member

Hi ,I am new to Splunk could I please ask any assistance.
I have two tokens in a user interface which vary depending on chosen drop down box values.
Example
$enter_feature_tok$ =CAA
$service_family_tok$=GMM

But I need to use chosen token values in a query to look up a table f s but the lookup variables is in lowercase not uppercase CAA and GMM.
Text in query is => "lookup tp_gmm_cca_digital_map" . You see gmm and cca.

I wanted to substitute gmm with lower case tokens=> lower($enter_feature_tok$) which has a current value GMM by saying lower($service_family_tok$ ) to give me "gmm" and same for
CAA by saying lower($enter_feature_tok$ ) to give me "caa" and appending the lowercase tokens so it becomes as =>tp_lower($service_family_tok$)lower($enter_feature_tok$)_telnet_map
in query resulting in => "tp_lower($service_family_tok$)_lower($enter_feature_tok$)_telnet_map"
The only constants are "tp
" and "_telnet_map"
But it did not work could anyone please assist or suggest ,much appreciated.

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Make the lookup case insensitive via its transforms.conf entry or settings -> lookups -> lookup definitions -> that lookup -> somethingsomethingcaseinsensitiveyou'llfindit.

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