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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...