Splunk Dev

Best Practice for index configuration consisting of millions of small events (syslog)

Esky73
Builder

We are ingesting syslog which has approximately 2.5 million events every 15 mins.

Are there any best practices or recommendations to optimise the index\buckets in this scenario

thx

Tags (1)
0 Karma

koshyk
Super Champion

I hope your question is related to Splunk indexing and NOT configuration for syslog?
some of the practices we follow

  • Ensure syslog logs in a consistent directory structure. So the template should be fine tuned to create a good hierarchy structure. eg /data/syslog/$port/$ip-host/$facility.$priority.log
  • Ensure logrotate is enabled to rotate these logs after a time or size. Ensure delaycompress option is enabled
  • Based on naming convention or IP ranges, your Splunk inputs should collect and assign correct sourcetype at collection itself (eg: /data/syslog/514/my-cisco-device/kern.info.log should be assigned the relevant sourcetype, source, index, host at collection time)
  • The index and indextime fields should be already present in your indexes/props for correct data indexing. (eg create mycompany_network index for network-data and props should align to the CIM model fields if possible)
  • if you use multiple syslog servers, ensure no duplication happens on the data
  • our experience shows with Splunk recommended indexers x 4, we can collect and index about your number without any impact to searches.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...