Splunk can route events to a specific index based on the server name. Below is a snippet of props.conf as well as the transforms.conf stanza that will perform the index routing that you described. Check https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Transformsconf for details on the attributes used in the transform.conf stanza.
Props.conf (snippet)
description = Index is overwritten by the transforms
TRANSFORMS-setindex=setindexbyhost
Transforms.conf
[setindexbyhost]
SOURCE_KEY = MetaData:Host
REGEX = ^host::(.*)$
DEST_KEY = MetaData:Index
FORMAT = idx_$1_perfmon_cpu-load
However, having a separate index for each source server is not recommended. This could lead to both management and performance challenges in a large Splunk installation. There are definitely cases where one may want to split out events for a group of source servers due to thing such as access and/or retention requirements. For example, send all development server events to a development index and all production server events to production index.
... View more