Splunk Search

Newbie to Splunk - Feild Extraction

Ak_C
New Member

I'm new to the Splunk Search and trying to learn it. I am not from Scripting BG so need help here. I have extraction configured for specific searches/reports now when i want to use the same in another report it 1) that Field extraction is not in the list 2) It is listed as a different name and I want it to be listed with a different name when another report sent for exmple:

  1. INT - extracts the Interfaces and I write a query like - index=ABC "duplex"| top hostname INT - where log is:

2013-06-14T07:40:10+00:00 10.51.88.34 Jun 14 09:40:09.253 CEST: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/2 (not half duplex), with ABCD FastEthernet2/0 (half duplex)

now I would want to use same INT Extractor listed in a different report with the name as INTERFACE - Is it possible?

Tags (2)
0 Karma

chris
Motivator

I don't quite understand your question do you just want to rename the field INT (probably not)? Then you can do the following:

index=ABC "duplex"| top hostname INT | rename INT as INTERFACE 

If the INT/INTERFACE field ist missing then the field extractions for that source/sourcetype are not configured yet.
-> I recommend you read the documentation about transforms & props

If the filed already exists but is called INTERFACE instead of INT you can create the following ( maybe after reading about props.conf) stanza in props.conf
$SPLUNK_HOME/etc/system/local/props.conf

[mySourceType]
FIELDALIAS-extract_ip = INTERFACE AS INT

If you need more help let me know

Chris

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...