Deployment Architecture

How to add a 'static' field to all events from a site to track data's original sources in a multisite index clustering environment?

p1rate5s
Explorer

I have a distributed Splunk installation with two sites and indexer replication between the two sites such that all data is searchable at both sites. I need to be able to distinguish which site the data came from initially (the original sources) and do not see anywhere where the 'site' designation in the cluster configuration is present in the events. How would I add a static field with the value of the site? I am thinking about a custom field with static values at index time that say 'site1' on the indexers at site1 and 'site2' on the indexers at site2. Has anyone done anything like this? The examples I have see are all based on data by source or host so I am a little unsure of how it would look. Any help is appreciated.

0 Karma

trsavela
Path Finder

There should be field called 'splunk_server', but don't think that helps with your situation.

You can process data at index time with a transform, there is more info here: http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Configureindex-timefieldextraction

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...