Closed sopel closed 11 years ago
This is more to do with modifying the shipper configuration file which I think is currently in a state of flux from other refactorings.
Assuming each environment has a separate configuration, the following could be added to the filter
section...
grok {
add_field => [ "@env", "ppe" ]
}
Or assuming combined inputs from multiple environments, the add_field
directive should be on every input
.
Yep, its a shipper setting.
The field currently being used is @environment
with settings of "LIVE" and "PPE" (currently)
See http://logsearch.cityindextest5.co.uk/#/dashboard/elasticsearch/IP%20Diagnostics%20LIVE%20filtered for a report that uses this to filter the data
All shippers have been updated to add a add_field => [ "@environment", "{PPE/LIVE}" ]
That's a so far unfiled issue from https://github.com/cityindex/logsearch-on-aws/issues/10 still:
While it isn't finally decided how to cluster the various environments, it is pretty clear that each should carry a respective tag to allow joined index and query usage with respective selectors.