No logs are written to /var/log












8















I have a problem, that no logs are written to /var/log.



-rw-r-----  1 syslog adm  6.4M May 21  2014 syslog
-rw-r----- 1 syslog adm 5.7M May 21 2014 daemon.log
-rw-r----- 1 syslog adm 494K May 21 2014 auth.log


But date and time is configured properly



Tue Apr 28 19:38:56 CEST 2015


It seems that I made a dist-upgrade 21 May of 2014. And since then I have no logs written. My system is Ubuntu 14.04 (no GUI). It has been running for 132 days without reboot.



Other log files like MySQL or nginx are up to date. Only system logs don't work.



I hope you can help me.










share|improve this question



























    8















    I have a problem, that no logs are written to /var/log.



    -rw-r-----  1 syslog adm  6.4M May 21  2014 syslog
    -rw-r----- 1 syslog adm 5.7M May 21 2014 daemon.log
    -rw-r----- 1 syslog adm 494K May 21 2014 auth.log


    But date and time is configured properly



    Tue Apr 28 19:38:56 CEST 2015


    It seems that I made a dist-upgrade 21 May of 2014. And since then I have no logs written. My system is Ubuntu 14.04 (no GUI). It has been running for 132 days without reboot.



    Other log files like MySQL or nginx are up to date. Only system logs don't work.



    I hope you can help me.










    share|improve this question

























      8












      8








      8


      1






      I have a problem, that no logs are written to /var/log.



      -rw-r-----  1 syslog adm  6.4M May 21  2014 syslog
      -rw-r----- 1 syslog adm 5.7M May 21 2014 daemon.log
      -rw-r----- 1 syslog adm 494K May 21 2014 auth.log


      But date and time is configured properly



      Tue Apr 28 19:38:56 CEST 2015


      It seems that I made a dist-upgrade 21 May of 2014. And since then I have no logs written. My system is Ubuntu 14.04 (no GUI). It has been running for 132 days without reboot.



      Other log files like MySQL or nginx are up to date. Only system logs don't work.



      I hope you can help me.










      share|improve this question














      I have a problem, that no logs are written to /var/log.



      -rw-r-----  1 syslog adm  6.4M May 21  2014 syslog
      -rw-r----- 1 syslog adm 5.7M May 21 2014 daemon.log
      -rw-r----- 1 syslog adm 494K May 21 2014 auth.log


      But date and time is configured properly



      Tue Apr 28 19:38:56 CEST 2015


      It seems that I made a dist-upgrade 21 May of 2014. And since then I have no logs written. My system is Ubuntu 14.04 (no GUI). It has been running for 132 days without reboot.



      Other log files like MySQL or nginx are up to date. Only system logs don't work.



      I hope you can help me.







      log syslog






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 28 '15 at 17:41









      stilstil

      201127




      201127






















          4 Answers
          4






          active

          oldest

          votes


















          6














          Ok, I found solution somewhere else:



          sudo apt-get install --reinstall rsyslog


          It seems rsyslog was removed itself at some point.






          share|improve this answer

































            2














            have you restarted the systemlogs deamon?



                sudo service rsyslog restart


            this should work. This problem came for me also, i restarted this deamon, now its working fine.






            share|improve this answer































              0














              Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:



              sudo dpkg-reconfigure rsyslog





              share|improve this answer































                0














                I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log






                share|improve this answer



















                • 1





                  Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                  – Charles Green
                  Jan 11 at 17:35











                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%2f615457%2fno-logs-are-written-to-var-log%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                6














                Ok, I found solution somewhere else:



                sudo apt-get install --reinstall rsyslog


                It seems rsyslog was removed itself at some point.






                share|improve this answer






























                  6














                  Ok, I found solution somewhere else:



                  sudo apt-get install --reinstall rsyslog


                  It seems rsyslog was removed itself at some point.






                  share|improve this answer




























                    6












                    6








                    6







                    Ok, I found solution somewhere else:



                    sudo apt-get install --reinstall rsyslog


                    It seems rsyslog was removed itself at some point.






                    share|improve this answer















                    Ok, I found solution somewhere else:



                    sudo apt-get install --reinstall rsyslog


                    It seems rsyslog was removed itself at some point.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 11 at 17:16

























                    answered Apr 28 '15 at 18:04









                    stilstil

                    201127




                    201127

























                        2














                        have you restarted the systemlogs deamon?



                            sudo service rsyslog restart


                        this should work. This problem came for me also, i restarted this deamon, now its working fine.






                        share|improve this answer




























                          2














                          have you restarted the systemlogs deamon?



                              sudo service rsyslog restart


                          this should work. This problem came for me also, i restarted this deamon, now its working fine.






                          share|improve this answer


























                            2












                            2








                            2







                            have you restarted the systemlogs deamon?



                                sudo service rsyslog restart


                            this should work. This problem came for me also, i restarted this deamon, now its working fine.






                            share|improve this answer













                            have you restarted the systemlogs deamon?



                                sudo service rsyslog restart


                            this should work. This problem came for me also, i restarted this deamon, now its working fine.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Aug 29 '17 at 9:44









                            amit pandyaamit pandya

                            1213




                            1213























                                0














                                Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:



                                sudo dpkg-reconfigure rsyslog





                                share|improve this answer




























                                  0














                                  Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:



                                  sudo dpkg-reconfigure rsyslog





                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:



                                    sudo dpkg-reconfigure rsyslog





                                    share|improve this answer













                                    Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:



                                    sudo dpkg-reconfigure rsyslog






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Oct 22 '17 at 11:36









                                    Xen2050Xen2050

                                    6,75612243




                                    6,75612243























                                        0














                                        I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log






                                        share|improve this answer



















                                        • 1





                                          Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                          – Charles Green
                                          Jan 11 at 17:35
















                                        0














                                        I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log






                                        share|improve this answer



















                                        • 1





                                          Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                          – Charles Green
                                          Jan 11 at 17:35














                                        0












                                        0








                                        0







                                        I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log






                                        share|improve this answer













                                        I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jan 11 at 17:14









                                        AsimAsim

                                        1




                                        1








                                        • 1





                                          Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                          – Charles Green
                                          Jan 11 at 17:35














                                        • 1





                                          Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                          – Charles Green
                                          Jan 11 at 17:35








                                        1




                                        1





                                        Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                        – Charles Green
                                        Jan 11 at 17:35





                                        Please note that the accepted answer at https://askubuntu.com/a/615473/283721 performs the same function

                                        – Charles Green
                                        Jan 11 at 17:35


















                                        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.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f615457%2fno-logs-are-written-to-var-log%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

                                        Human spaceflight

                                        Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                        File:DeusFollowingSea.jpg