{"id":354,"date":"2016-02-22T12:20:11","date_gmt":"2016-02-22T04:20:11","guid":{"rendered":"http:\/\/play.datalude.com\/blog\/?p=354"},"modified":"2016-02-22T13:02:51","modified_gmt":"2016-02-22T05:02:51","slug":"gnome-system-log-viewer-no-such-file","status":"publish","type":"post","link":"https:\/\/play.datalude.com\/blog\/2016\/02\/gnome-system-log-viewer-no-such-file\/","title":{"rendered":"Gnome System Log Viewer. No such file"},"content":{"rendered":"<p>The default log viewer application that comes with Ubuntu, Mint etc, is called gnome-system-log. Sometimes it tries to display logs which don't exist and comes up with an error, eg: \"Error when getting information for file '\/var\/log\/mail.log': No such file or directory\". However there is no obvious way to clear this message and stop it trying to load these logs in the future.<\/p>\n<p>After a few minutes following dead ends on the internet, I decided to figure out where the config file was held. This information can also be used to add logs as well as remove them.<\/p>\n<p>So apt-cache wasn't much use, and dpgk-query also failed me. Nothing in .conf, .gnome, .gnome2 &#8230; grr.<\/p>\n<p>The source code? No clues. lsof. Nope.<\/p>\n<p>Aha. Now we're getting somewhere: '<span style=\"color: #999999;\">gsettings list-recursively org.gnome.gnome-system-log<\/span>'<\/p>\n<p>So this command gets the current value: '<span style=\"color: #999999;\">gsettings get org.gnome.gnome-system-log logfiles<\/span>'<br \/>\neg: ['\/var\/log\/auth.log', '\/var\/log\/dpkg.log', '\/var\/log\/mail.log', '\/var\/log\/syslog',\u00a0 '\/var\/log\/dmesg', '\/var\/log\/boot.log', '\/var\/log\/kern.log']<br \/>\nSo edit that list accordingly and then use the following to set it, not forgetting the double quotes around the long bracketed string.<\/p>\n<p><span style=\"color: #808080;\">gsettings set org.gnome.gnome-system-log logfiles\u00a0 \"['\/var\/log\/auth.log', &#8230;etc&#8230; '\/var\/log\/kern.log']\"<\/span><\/p>\n<p>Jeez, why was that so complicated. Any chance of adding a Preferences panel in there?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default log viewer application that comes with Ubuntu, Mint etc, is called gnome-system-log. Sometimes it tries to display logs which don't exist and comes up with an error, eg: \"Error when getting information for file '\/var\/log\/mail.log': No such file or directory\". However there is no obvious way to clear this message and stop it &#8230; <a title=\"Gnome System Log Viewer. No such file\" class=\"read-more\" href=\"https:\/\/play.datalude.com\/blog\/2016\/02\/gnome-system-log-viewer-no-such-file\/\" aria-label=\"Read more about Gnome System Log Viewer. No such file\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":0,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"wp:attachment":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}