All Apps and Add-ons

Splunk Add-on for Java Management Extensions: How to configure the add-on to write to the indexer instead of the search head?

splunkreal
Motivator

Hello guys,

I've this configuration in a test environment :

1 SEARCH HEAD < (dist. search) > 1 INDEXER

(no clustered environment)

I set up indexes on the indexer then I still added those (dummy) indexes on the search head for management reasons.

The problem is with the Splunk Add-on for Java Management Extensions (JMX) : it's still writing on the local index of the search head! How to tell it to write on the indexer instead?

Thanks!

* If this helps, please upvote or accept solution 🙂 *
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi realsplunk,
did you configured your Search Head to forward its logs to the Indexer?

  • [Settings -- Forward and Receiving]
  • Configure Forward -- New -- Indexer_IP:9997
  • Default Value for Forwarding
  • Splunk restart

After you can see to your Add-On to send logs the index you want.
Bye.
Giuseppe

splunkreal
Motivator

Good idea, thanks!

However where are then stored internal indexes?

* If this helps, please upvote or accept solution 🙂 *
0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

Hi @realsplunk - Did cusello's answer help solve your question? If yes, please don't forget to click "Accept" below his answer to resolve this post. If no, please leave a comment with more feedback. Thanks.

0 Karma

splunkreal
Motivator

Hi Aareneta, I couldn't try it yet. Thanks.

* If this helps, please upvote or accept solution 🙂 *
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi realsplunk,
Splunk internal logs are stored in _internal index.
When Splunk doesn't find an index, it puts logs in index=main.
Every way, try this search
index=* sourcetype=yoursourcetype and verify if you have logs and in which index.
Bye.
Giuseppe

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...