All Apps and Add-ons

Host shows as $decideOnStartup in website monitoring 2.9

afx
Contributor

Hi,
I just started to use 2.9 and wanted to check out the new header/body feature.
While doing so I discovered that host for all entries is set to $decideOnStartup while looking at the web monitoring index.
Am I doing somthing wrong?

thx
afx

0 Karma
1 Solution

afx
Contributor

Started to set up a website via the GUI and advanced options instead of the inputs.conf file of the app.
Found a host setting there that said $decideOnStartup.

So one explicitly needs to set up the host, it is not taken from the monitored URL.

cheers
afx

View solution in original post

0 Karma

afx
Contributor

Started to set up a website via the GUI and advanced options instead of the inputs.conf file of the app.
Found a host setting there that said $decideOnStartup.

So one explicitly needs to set up the host, it is not taken from the monitored URL.

cheers
afx

0 Karma

afx
Contributor

Well,

splunk show default-hostname
splunk show servername

both report the correct hostname....

And actually, I would think it makes more sense to set the host of the target URL than the querying host here.

thx
afx

0 Karma

nickhills
Ultra Champion

That sounds like the splunk server running the website monitor has an incomplete hostname.
Check in server.conf and inputs.conf on your server and make sure they are both set to what you expect.

The host(server)name in server.conf and the host in inputs.conf are automatically populated the first time splunk starts, but if you have cloned/restored or otherwise replaced the config files this can get out of sync.

You can either fix the names by hand in those files and restart the server, or use the cli commands
./splunk set servername yourForwarderName

./splunk set default-hostname yourForwarderName

https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/Changedefaultvalues

If my comment helps, please give it a thumbs up!
0 Karma
Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...