Security

Can't access Splunk through Local Hostname

isaac_su
Engager

Hi,

I have previously installed Splunk Free and is able to access the Web Interface through my local hostname as so.
"MyPcName:8001" in Google Chrome.

However, it stopped working out of the blue one day as Chrome returns "ERR_CONNECTION_RESET" whenever i tried to connect via the local hostname. I've managed to connect to Splunk by using the localhost IP "127.0.0.1".

Have anyone encountered a problem similar to this before? If so, how did you manage to troubleshoot it?
Thanks in advance!

0 Karma

to4kawa
Ultra Champion

chrome://settings/clearBrowserData

Why not try clearing the cache?

0 Karma

isaac_su
Engager

I've tried that but to no avail T-T

0 Karma

sanjeev543
Communicator

Could you check if you are able to ping local host ? ping localhost
And check if your loopback address is getting accessed with the local host name ? nslookup 127.0.0.1 ?

isaac_su
Engager

Hi Sanjeev,
I'm able to ping localhost and nslookup 127.0.0.1 returns me :
Name: localhost
Address: 127.0.0.1

Given that, "C:\Program Files\Splunk\bin> splunk start" returns me -
"The Splunk web interface is at http://MyPcName:8001". But that link always returns me ERR_CONNECTION_RESET. So far, the only link that works for me is:
- http://127.0.0.1:8001/
- http://localhost:8001/

0 Karma

sanjeev543
Communicator

Could you please check serverName config in server.conf file under $SH/etc/system/local
and if not updated with your PC name and change it and restart Splunk and try connecting with http://MyPcName:8001

0 Karma

sanjeev543
Communicator

to be precise,

[general]
serverName =

0 Karma

to4kawa
Ultra Champion

C:\Windows\System32\drivers\etc\hosts
check this.

reference

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...