Splunk Search

automatic lookup - match_type = wildcard

KarunK
Contributor

Hi All,

Again depending on my favourite support people.

I have lookup file looks like below.

channel,customer
chnl-7,channel7
bbc-1,BBC
nnc-2BBC

I have a log entry containing a URL which looks like below. The URL field is highlighted.

125-11-2012 http://telstra.com/chnl-7/sports/cricket.isml 23 788000 200

I need to define a autolookup which provides a field called channel when i search for the logs.

transforms.conf

[cds_test]
filename = cds_test.csv
min_matches = 1
default_match = Others
case_sensitive_match = false
match_type = WILDCARD(channel)

props.conf is defined accordingly.

Right now with the above transforms i have to add "*" at the end of the channels info in CSV like below. This is not possible because I am creating lookup csv file is automatically using a scheduled search.

Is there any way i can do this using with out "*" ?

channel,customer
*chnl-7*,channel7
*bbc-1*,BBC
*bbc-2*,BBC

Thanks

KK

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Looking at the URL, you could extract the channel into a field and not use any wildcard matching at all.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Looking at the URL, you could extract the channel into a field and not use any wildcard matching at all.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...