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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...