Other Admin

using vm's to set up splunk scenario

newsplunkuser
Loves-to-Learn

I'm trying to learn about splunk for an upcoming position. I recently purchased parallels so I could utilize windows vms. I was trying to set up an indexer on one vm and the forwarder on another and just mess around with splunks capabilities. Is this even possible? So far it hasn't worked and I have tried a few alterations on the output.conf file in the forwarder. since the VMs have the same public address, I tried to use the private address and I also tried to go by hostname and it still didn't work. Any suggestions?

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@newsplunkuser  - It is definitely possible. We have many production systems on VMs.

Verify below details first:

  • Each VM should have its own unique IP address (private or public).
  • One VM should be able to access IP address of other VM, if it is not, then that is a Networking issue, which needs to be fixed.
  • Install Splunk Enterprice on both the VMs

 

Once you verify above then you can configure Splunk to receive and forward data:

  • For Splunk Indexer Machine:
    • Setup Data Receiving from UI Settings
    • or
    • Setup Data receiving through inputs.conf
      • [splunktcp:9997]
  •  
  • For Splunk Forwarder Machine:
    • Setup Data Forwarding from UI Settings
    • or
    • Setup Data forwarding through outputs.conf
      • [tcpout]
        defaultGroup = my_indexer
        [my_indexer]
        server = <ip-of-indexer-vm>:9997

 

I hope this helps!!! Kindly upvote if it does!!!

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...