All Apps and Add-ons

Transforms.conf not using match_type = CIDR(ip) when searching

mmqt
Path Finder

Leveraging the app ASN Lookup Generator - https://splunkbase.splunk.com/app/3531/ to build a lookup table for that has the following in a lookup table called 'asn'
asn

the transforms.conf file has the following - note I commented out max_matches to test, with or without that line commented it still wont return results

# cat TA-asngen/default/transforms.conf
[asn]
filename = asn.csv
match_type = CIDR(ip)
#max_matches = 1

If I run the following search

| makeresults |eval src="1.0.0.1"| lookup asn ip as src

Nothing is matched, but it should be matched to asn 1335, any thoughts? I feel like I'm doing something wrong

no match

0 Karma

mmqt
Path Finder

I needed to reboot the instance for it to recognize the input, after the reboot it worked

0 Karma

to4kawa
Ultra Champion

your query, lookup asn ,not asn.csv

0 Karma

mmqt
Path Finder

changing the query to asn.csv still does not provide any ip transformation.

0 Karma

to4kawa
Ultra Champion

link text

how's props.conf?

0 Karma

mmqt
Path Finder

No props as this is not intended to be an automatic lookup, this lookup is called on demand for any sourcetype that contains an IP.

Props would just remove the need to put in ip as src OUTPUTNEW asn

Which is not the problem I'm trying to solve

0 Karma

anmolpatel
Builder

did you run the below?

| extract reload=T
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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...