Deployment Architecture

Why can't I connect to splunk when using VM - splunk enterprise trial version

Christians86
Explorer
 
 

Hi, I have had this problem twice now on two different computers. 

 

  • I install debian/ubuntu 
  • Then I use the .deb file from splunk.com - the newest you get when you start your trial
  • I then make a VM based on a distro of ubuntu/debian and install
  • Everything workes fine, I use my own user, not the root user to install
  • I follow the steps of https://www.bitsioinc.com/tutorials/install-splunk-linux/ 
  • Splunk starts and works fine. No problems..until I restart the VM. Then localhost:8000 and the external ip both stop working and splunk web gui is not possible to connect to.
  • I use the same account both for installation and for login when restarting

 

What am I doing wrong? Other VM's don't report problems on the machine, its only splunk, and only after restarting of the vm. The VM itself has internet and works fine, its only splunk that has issues. 

 

Labels (2)
0 Karma

Peterman
Explorer

@Christians86 wrote:
 
 

Hi, I have had this problem twice now on two different computers. 

 

  • I install debian/ubuntu 
  • Then I use the .deb file from splunk.com - the newest you get when you start your trial
  • I then make a VM based on a distro of ubuntu/debian and install
  • Everything workes fine, I use my own user, not the root user to install
  • I follow the steps of  https://www.bitsioinc.com/tutorials/install-splunk-linux/
  • Splunk starts and works fine. No problems..until I restart the VM. Then localhost:8000 and the external ip both stop working and splunk web gui is not possible to connect to.
  • I use the same account both for installation and for login when restarting

 

What am I doing wrong? Other VM's don't report problems on the machine, its only splunk, and only after restarting of the vm. The VM itself has internet and works fine, its only splunk that has issues. 

 


i am also facing this problem man 

0 Karma

codebuilder
Influencer

Did you enable boot start for Splunk? Have you checked the service status after rebooting?

Also check the Splunk internal logs for errors/issues after rebooting.
$SPLUNK_HOME/var/log/splunk/splunkd.log

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

Christians86
Explorer
 
 

Hi, I used

sudo /opt/splunk/bin/splunk enable boot-start

 

and I also got that splunkd was running when I checked. However I could still not get access to web gui

0 Karma

codebuilder
Influencer

Do you have a firewall rule blocking port 8000?

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

Christians86
Explorer
 
 

Hi,

No, if I had it wouldn't have worked until the VM was restarted. It only happens once the VM restarts, if I don't restart I can forward data etc without problems and access as normal.

0 Karma

codebuilder
Influencer

Again, have you checked splunkd.log after reboot?

What output do you get from systemctl status splunkd (or whatever you named the service) ?

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

Christians86
Explorer
 
 

Sorry, I had to redo the VM since I had removed it. I did all the same steps, same version of ubuntu but set the keyboard layout to English, and not Norwegian as yesterday. I have since restarted the VM 3 times both via ubuntu, hypervisor with and without ingest of data - it has yet to crash. So I let it run as if for some days and see...

 

Thanks for the help so far 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...