- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I script add new deployment clients to a Server Class?
eburnett
Engager
09-02-2021
07:11 AM
So when we build a new server and install the Splunk forwarder on the server.
Is there a way to script to add that new deployment client to a Server Class?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
09-02-2021
07:21 AM
Hi @eburnett,
why don't you try a different approach: instead to list all the hostnames of clients of a ServerClass, try to use a generic definition in whitelist?
e.g.: if you want in a ServerClass all the windows servers except Domain Controllers, you could put:
- * in whitelist,
- windows X64 in type,
- domain1, domain2, domain3 in blacklist
in this way adding a new server windows, automatically it will be inserted in that ServerClass.
Ciao.
Giuseppe
