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