Can the logrotate descriptor handle multiple wildcards?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
For example, on a syslog
collector, where remote syslog
is coming into /var/syslog/<host>/*.log
, can I have something like the following in my logrotate
config:
/var/syslog/*/*.log
logs syslog rsyslog logrotate
add a comment |Â
up vote
0
down vote
favorite
For example, on a syslog
collector, where remote syslog
is coming into /var/syslog/<host>/*.log
, can I have something like the following in my logrotate
config:
/var/syslog/*/*.log
logs syslog rsyslog logrotate
1
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For example, on a syslog
collector, where remote syslog
is coming into /var/syslog/<host>/*.log
, can I have something like the following in my logrotate
config:
/var/syslog/*/*.log
logs syslog rsyslog logrotate
For example, on a syslog
collector, where remote syslog
is coming into /var/syslog/<host>/*.log
, can I have something like the following in my logrotate
config:
/var/syslog/*/*.log
logs syslog rsyslog logrotate
edited Dec 6 '17 at 22:30
Patrick Mevzek
2,0381721
2,0381721
asked Dec 6 '17 at 21:16
warren
6641723
6641723
1
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31
add a comment |Â
1
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31
1
1
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Thanks to both a colleague and Patrick Mevzek for finding the answer to this question.
Quoting from rfaircloth.com:
Create log rotation configuration
/etc/logrotate.d/splunk-syslog
:
/var/splunk-syslog/*/*.log
This is OOTB functionality as of at least RHEL/CentOS 7 and Ubuntu 16 LTS.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Thanks to both a colleague and Patrick Mevzek for finding the answer to this question.
Quoting from rfaircloth.com:
Create log rotation configuration
/etc/logrotate.d/splunk-syslog
:
/var/splunk-syslog/*/*.log
This is OOTB functionality as of at least RHEL/CentOS 7 and Ubuntu 16 LTS.
add a comment |Â
up vote
2
down vote
accepted
Thanks to both a colleague and Patrick Mevzek for finding the answer to this question.
Quoting from rfaircloth.com:
Create log rotation configuration
/etc/logrotate.d/splunk-syslog
:
/var/splunk-syslog/*/*.log
This is OOTB functionality as of at least RHEL/CentOS 7 and Ubuntu 16 LTS.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Thanks to both a colleague and Patrick Mevzek for finding the answer to this question.
Quoting from rfaircloth.com:
Create log rotation configuration
/etc/logrotate.d/splunk-syslog
:
/var/splunk-syslog/*/*.log
This is OOTB functionality as of at least RHEL/CentOS 7 and Ubuntu 16 LTS.
Thanks to both a colleague and Patrick Mevzek for finding the answer to this question.
Quoting from rfaircloth.com:
Create log rotation configuration
/etc/logrotate.d/splunk-syslog
:
/var/splunk-syslog/*/*.log
This is OOTB functionality as of at least RHEL/CentOS 7 and Ubuntu 16 LTS.
answered Dec 7 '17 at 3:30
warren
6641723
6641723
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409316%2fcan-the-logrotate-descriptor-handle-multiple-wildcards%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Yes, you can and it works out of the box. See superuser.com/questions/255951/â¦
â Patrick Mevzek
Dec 6 '17 at 21:44
@PatrickMevzek: thanks. I collated your find and a colleague's reference into an answer
â warren
Dec 7 '17 at 3:31