Merge pull request #431 from d34dh0r53/pr-205
Ensure that rsyslog state files are unique
This commit is contained in:
commit
745ebeaea4
@ -31,11 +31,14 @@ for log in matches:
|
||||
container = log.split('/')[3]
|
||||
service = log.split('/')[4].split('.')[0]
|
||||
if 'horizon' in container:
|
||||
service = container + '_' + service
|
||||
service = container + '_' + service
|
||||
|
||||
if 'logstash' in container:
|
||||
continue
|
||||
|
||||
print "$InputFileName {}".format(log)
|
||||
print "$InputFileTag {}:".format(container)
|
||||
print "$InputFileStateFile state-{}".format(service)
|
||||
print "$InputFileTag {}.{}:".format(container, service)
|
||||
print "$InputFileStateFile state-{}-{}".format(container, service)
|
||||
print "$InputFileFacility local7"
|
||||
print "$InputRunFileMonitor\n"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user