Can the logrotate descriptor handle multiple wildcards?

The name of the pictureThe name of the pictureThe name of the pictureClash 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 






share|improve this question


















  • 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














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 






share|improve this question


















  • 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












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 






share|improve this question














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 








share|improve this question













share|improve this question




share|improve this question








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












  • 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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 7 '17 at 3:30









        warren

        6641723




        6641723



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?