Use the agent management interface to define server classes
The agent management interface is an interactive, visual tool for creating and editing server classes, which map agents to deployment apps. You run it on agent management. For an introduction to the interface, including details on how to access it, see Agent management UI overview.
The interface saves server class configurations to a serverclass.conf file. The first time you save a server class, the interface creates the serverclass.conf file under $SPLUNK_HOME/etc/system/local on agent management. For information on serverclass.conf, see The serverclass.conf file.
serverclass.conf. For information about the limitations of the interface, see Compatibility and agent management UI. For details on editing serverclass.conf directly, see the topic Use serverclass.conf to define server classes. Define a server class
A server class maps agents to deployment apps. Therefore, before you define a server class, you need to configure the agents and create the apps that you intend to map. For more information, see Configure agents and Create deployment apps.
After you set up the agents and apps, they are displayed automatically on the interface.
Create the server class
To create the server class, go to the agent management interface, as described in Access the agent management interface, and perform the following steps:
-
On the menu on the left, select Forwarders and then select the Server Classes tab.
-
Select the New server class button.
-
On the Add a new server class page, in the Server class name field, enter a name for the server class and select Next.Note: The server class names must be unique and they cannot contain spaces.
-
In the Assign agents to server class section, use filters to dynamically include or exclude agents. Enter filter criteria in the Include, Exclude, and Filter by Machine Type fields. For information about creating filters, see Filter agents.
After you enter one or more filters, select the Preview button to view the set of matched agents. If you have a long list of agents and you only want to view a subset of them, you can use the filter field to the right of the All, Matched, Unmatched buttons. This particular filter only limits the agents shown in the table; it does not filter the set of agents included in the server class. You can filter on the columns in the agent table; for example, host name or IP address.
-
Select Next.
-
In the Assign applications to server class section, select up to 10 applications from the Unassigned Applications column.
-
Select the right arrow (
). This moves these apps to the Assigned Applications column.
-
Select Next.
-
In the Summary section, review the details. If you want to edit your selections, select Back. If the details are correct, select Done.
You can now view the newly created server class, create another server class, or go to the Server Classes tab.
When you save the agent settings, agent management reloads and then deploys the set of apps for this server class to any agents that haven't already received them. It only does this if you have already specified the apps for the server class.
View a server class
To view the contents of a server class:
- Log in to Splunk Enterprise.
- Select Settings and then under the Distributed Environment section select Agent management.
The Agent management page opens.
On the menu on the left, select Forwarders and then select the Server Classes tab. The list of all server classes on the agent management is displayed.
- Select the server class you want to view. This takes you to a page for that server class. The page contains three tabs:
- Details - lists the server class's reload time, architecture, and repository.
- Forwarders - lists the agents assigned to that server class. From here, you can also edit agent assignment.
- Applications - lists the applications assigned to the server class. From here, you can also edit configurations.
For information on managing apps, see Use agent management UI to manage apps.
For information on managing agents, see Use agent management UI to manage agents.
Edit a server class
You can edit a server class at any time.
- Log in to Splunk Enterprise.
- Select Settings and then under the Distributed Environment section select Agent management.
The Agent management page opens.
On the menu on the left, select Forwarders and then select the Server Classes tab. The list of all server classes on the agent management is displayed.
- Locate the server class you want to edit and select the three dots (
) in the last column for that server class. You have the following options:
- View details
- Edit forwarders
- Edit applications
- Rename
- Delete
When you select Save after editing the set of agents or apps, agent management reloads and makes the latest app content available to any agents that haven't already received it.