Getting Data In

Is it possible to use multiple indexes in a single server?

bwniranjan
New Member

We have a multiple logs in a single server. But, I want to separate those logs to control access. Can we send different log files to different indexes so that we can segrate the logs to users?

Tags (2)
0 Karma

prakash007
Builder

If you have a universal forwarder installed on your host, yes-you can send those logs to different indexes...for instance you can have your inputs configured this way..

inputs.conf
[monitor:///var/log/httpd]
sourcetype = access_common
index = web_access 

[monitor:///var/log/messages]
sourcetype = syslog
index = linux_os
0 Karma

renjith_nair
Legend

@bwniranjan,
Yes of course! You can use multiple indexes in same indexer .

Read though this documentation and let us know in case you have further questions.

How to create multiple indexes
Monitor files and directories with inputs.conf
Input conf for monitor

Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...