Deployment Architecture

Forwarder Management >> serverclass.conf not updating

daniel333
Builder

All,

Splunk 6.22

Using fowarder manager on my deployment server I created a good setup of apps and clients class. Everything worked great. I decided to copy the serverclass.conf to a new install of splunk in another data center. When I look at the actual serverclass.conf file how ever its missing various classes I see clear as day in the GUI. Not all, but a few.

I restarted the deployment server and used the fowarder manager to add some random test classes. I am seeing them appear in the serverclass.conf file. But I am still missing various settings.

Any idea on what is happening here? Is there another file that forwarder management pulls its configs from?

0 Karma
1 Solution

daniel333
Builder

Ah! I was under the Search app context when I created the class. So the rest of the file was the search app's local.

View solution in original post

wrangler2x
Motivator

I've never seen this before until just today. I'm on 6.5.2. I've always looked at ~/etc/system/local/serverclass.conf to see what's configured, and how, and always thought of it as authoritative. But today, I was trying to remember where one forwarder was picking up duo logs and when I looked at serverclass.conf all I saw were the entry for system logs (for that one system). Yet when I looked in Forwarder Management I saw the serverClass I had remembered being associated with that system. I googled and found this Splunk answer.

So, yes, I found the missing stanzas in the search app's local as well after I read this. But I've always gone from Search to Settings to Forwarder management and always seen my updates in ~/etc/system/local/serverclass.conf. I'm not understanding why suddenly this one serverClass and its associated Deployment app are being written to the search app's local directory. That feels buggy to me.

So, the next question is (if this is expected behavior), what can I do to make sure that everything gets written to ~/etc/system/local/serverclass.conf ?

Also, this documentation seems to state that serverclass.conf belongs in ~/etc/system/local: https://docs.splunk.com/Documentation/Splunk/latest/Updating/Useserverclass.conf

laurent_
Explorer

I opened a case as we have the same trouble (serverclass.conf magically created in search/local)

  • We don't use CLI.
  • We don't use API.
  • We always use Forwarder management in Settings menu.
0 Karma

daniel333
Builder

Ah! I was under the Search app context when I created the class. So the rest of the file was the search app's local.

omprakash9998
Path Finder

Can you please explain what do you mean by in search app context when using forwarder management to create a serverclass.

 

I have the same issue. I am trying to replicate to see how it is caused.

 

Thanks

0 Karma
Get Updates on the Splunk Community!

Monitoring MariaDB and MySQL

In a previous post, we explored monitoring PostgreSQL and general best practices around which metrics to ...

Financial Services Industry Use Cases, ITSI Best Practices, and More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Splunk Federated Analytics for Amazon Security Lake

Thursday, November 21, 2024  |  11AM PT / 2PM ET Register Now Join our session to see the technical ...