All Apps and Add-ons

Add-on builder set static host field

goran_epl
Explorer

Hello,
I am building an TA with Splunk add-on builder with scripted input.
I want to give a user the possibility to set static host field for each input.
I cannot add host field in data input parameters because I am getting an error:
"Internal name
The input parameter name 'host' is a reserved keyword"

How can I do that?

Hostname or IP is not in the event data, but I have an input parameter hostname which I could use.

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Please use "hostname" or "myhost" instead of "host" which is a Splunk reserved parameter. Also please make sure the internal name you created is unique in UI

0 Karma
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...