Where are syslog files?












0














So if I run journalctl I see loads of kernel based commands but if I look at /var/log/syslog it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?










share|improve this question




















  • 1




    Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
    – Redbob
    Oct 12 '17 at 13:09


















0














So if I run journalctl I see loads of kernel based commands but if I look at /var/log/syslog it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?










share|improve this question




















  • 1




    Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
    – Redbob
    Oct 12 '17 at 13:09
















0












0








0







So if I run journalctl I see loads of kernel based commands but if I look at /var/log/syslog it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?










share|improve this question















So if I run journalctl I see loads of kernel based commands but if I look at /var/log/syslog it is empty. I would like to setup swatch to monitor the journal but I ultimately need to know where the log is actually located. Am I missing something?







16.04 syslog






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 14 '18 at 10:00









abu_bua

3,26681026




3,26681026










asked Oct 12 '17 at 12:17









Antony

10626




10626








  • 1




    Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
    – Redbob
    Oct 12 '17 at 13:09
















  • 1




    Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
    – Redbob
    Oct 12 '17 at 13:09










1




1




Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
– Redbob
Oct 12 '17 at 13:09






Maybe syslog service is stopped. Type sudo systemctl status syslog to see if it's running. If it's running, cat /etc/rsyslog.d/50-default.conf to see where it is saving log files.
– Redbob
Oct 12 '17 at 13:09












1 Answer
1






active

oldest

votes


















0














Take a look at the /var/log directory.



Kernel messages can be found in /var/log/kern.log



You are welcome to take a look at the manuals or wikis:



https://help.ubuntu.com/community/LinuxLogFiles



As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:



cat /etc/rsyslog.d/50-default.conf





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f964257%2fwhere-are-syslog-files%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Take a look at the /var/log directory.



    Kernel messages can be found in /var/log/kern.log



    You are welcome to take a look at the manuals or wikis:



    https://help.ubuntu.com/community/LinuxLogFiles



    As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:



    cat /etc/rsyslog.d/50-default.conf





    share|improve this answer




























      0














      Take a look at the /var/log directory.



      Kernel messages can be found in /var/log/kern.log



      You are welcome to take a look at the manuals or wikis:



      https://help.ubuntu.com/community/LinuxLogFiles



      As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:



      cat /etc/rsyslog.d/50-default.conf





      share|improve this answer


























        0












        0








        0






        Take a look at the /var/log directory.



        Kernel messages can be found in /var/log/kern.log



        You are welcome to take a look at the manuals or wikis:



        https://help.ubuntu.com/community/LinuxLogFiles



        As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:



        cat /etc/rsyslog.d/50-default.conf





        share|improve this answer














        Take a look at the /var/log directory.



        Kernel messages can be found in /var/log/kern.log



        You are welcome to take a look at the manuals or wikis:



        https://help.ubuntu.com/community/LinuxLogFiles



        As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:



        cat /etc/rsyslog.d/50-default.conf






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 14 '18 at 10:03

























        answered Oct 14 '18 at 0:49









        abu_bua

        3,26681026




        3,26681026






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f964257%2fwhere-are-syslog-files%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei