Hello,
I'd like to be able use info from the filename to set the tag name (and
maybe other uses).
Where the filename would look like...
/var/log/<env_name>-<app_name>.log
... I'd like to be able to set the Tag= to be <app_name>@<env_name>
I have 3 apps (app1/2/3, each of which exists 3 separate envs
(dev,stg,prod).
That means I need nine permutations:
input( Type="imfile"
File="/var/log/apps/dev-app1.log"
Tag="app1@dev"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
.
.
.
input( Type="imfile"
File="/var/log/apps/prod-app3.log"
Tag="app3@prod"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
I'd like to able to do something like this:
input( Type="imfile"
File="/var/log/apps/%1-%2.log"
Tag="%2@%1"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
It doesn't look like this is possible, but maybe I am missing something.
Am I?
Brian
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
I'd like to be able use info from the filename to set the tag name (and
maybe other uses).
Where the filename would look like...
/var/log/<env_name>-<app_name>.log
... I'd like to be able to set the Tag= to be <app_name>@<env_name>
I have 3 apps (app1/2/3, each of which exists 3 separate envs
(dev,stg,prod).
That means I need nine permutations:
input( Type="imfile"
File="/var/log/apps/dev-app1.log"
Tag="app1@dev"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
.
.
.
input( Type="imfile"
File="/var/log/apps/prod-app3.log"
Tag="app3@prod"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
I'd like to able to do something like this:
input( Type="imfile"
File="/var/log/apps/%1-%2.log"
Tag="%2@%1"
Severity="debug"
Facility="local7"
Ruleset="journal"
)
It doesn't look like this is possible, but maybe I am missing something.
Am I?
Brian
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.