Splunk “Inputs.config” file change request based on NETBIOS NAME.
Greetings for the day. Once again i am stuck on one project for which i need your help. “Our TAG line says no question is silly question” so i dare to ask this one :).
I have one requirement to change one Splunk Configuration File located at “C:Program FilesSplunkUniversalForwarderetcsystemlocal” file name Inputs.config.
This is the data in the file if we open with notepad
host = OLDNAME
I want to read the NETBIOS name of the server and change OLDNAME to actual server name. So if my server name is HTMD.com then i need the entry to replace OLDNAME with HTMD.com.
Not restricting myself with options so BAT script, PS, Application, Package, Configuration Item, from SCCM or without SCCM. All options are welcome.