Deployment Architecture

Is there a way to link field names?

jamie1
Communicator

Hi Guys,

I am wondering if there is a way that fields can be linked (sort of like aliases in PowerShell if that helps for context). 

For example, the default host field and a field named "computer_fqdn" give the same value. However, if you search for "host=examplename" but the event that you're looking for uses the "computer_fqdn" field, the event won't show.

I'm happy to answer any questions regarding this issue.

Thanks in advance,

Jamie

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

You might be able to set up props.conf for your sourcetype using FIELDALIAS to achieve this.

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

As @ITWhisperer said there is concept ALIAS which give you this kind of functionality. Another more extended concept is CIM (Common Information Model) which helps users/developers onboarding systems to Splunk to use common names etc. With this concept you could create Dashboards, Alerts, Reports with those common names, data models, tag etc. without knowing exact field names e.g. in Cisco SW/FW vs. Palo Alto vs. Juniper vs. Forte etc.

You could found CIM app https://splunkbase.splunk.com/app/1621 and documentation from https://docs.splunk.com/Documentation/CIM/latest/User/Overview

This has used in quite many Apps and TAs on splunkbase.

r. Ismo

jamie1
Communicator

Hi @isoutamo,

Thanks for the additional info, I've got the CIM app set up and managed to achieve my goal just in the Splunk settings.

Once again, thanks for the info,

Jamie

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

host is usually used by Splunk for host the event came from - is this the host field you are talking about or is there also a host field in your event data as well as computer_fqdn?

jamie1
Communicator

Hi There,

Yeah the host field I am talking about is the host of which the event was raised.

For example if I was to search host="computer1", it would show all the events that took place on that computer. The issue is that one of the add-ons I use, doesn't use the host field it instead uses a field called "computer_fqdn", but they both hold the same value.

My goal is to essentially have host="computer1" and computer_fqdn="computer1" give the same results when searched.

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you search 

host="computer1" OR computer_fqdn="computer1"

jamie1
Communicator

That search would yield the desired result. But I was wondering if there was a way to connect the fields in a way.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You might be able to set up props.conf for your sourcetype using FIELDALIAS to achieve this.

jamie1
Communicator

Hey There,

I didn't end up editing stanzas, but I found a way to do it just through the Splunk Cloud settings. Your suggestion definitely lead me down the right path though 🙂

Jamie

0 Karma

jamie1
Communicator

Hi There,

I'm going to give this a go now, and I'll let you know if it works.

Jamie

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...