{"id":4751,"date":"2013-04-16T06:26:50","date_gmt":"2013-04-15T20:26:50","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=4751"},"modified":"2018-12-11T14:13:02","modified_gmt":"2018-12-11T04:13:02","slug":"basics-old-savegroup-messages","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2013\/04\/16\/basics-old-savegroup-messages\/","title":{"rendered":"Basics &#8211; Old Savegroup Messages"},"content":{"rendered":"<p>A long time ago, in a NetWorker far, far away, all the output of a savegroup was included in the notification it generated. Eventually, this was determined to be too problematic \u2013 when it worked, it was good, but if a group had some major issue (or someone turned on the verbose flag), notification messages could be extremely large.<\/p>\n<p>This led to the &#8220;X lines suppressed&#8221; message that would appear in savegroup notifications, and for a while you could establish an option in \/nsr\/debug to turn message suppression off if you&nbsp;<em>really<\/em> wanted the full details of the savegroup.<\/p>\n<p>Eventually though, for reasons unknown to sensible people, such suppression-disabling disappeared entirely, until <strong>\/nsr\/tmp\/sg<\/strong> turned up, which would contain a list of directories named after savegroups and the most recent notifications generated by those groups. After a while, savegroup suppression was turned&nbsp;<em>off<\/em> for the details saved into that directory.<\/p>\n<p>With the release of NetWorker 8, the tmp\/sg group has been moved to a more logical location \u2013 <strong>\/nsr\/logs\/sg<\/strong>, and the filenames cleaned up somewhat.<\/p>\n<p>While there&#8217;s a command line tool now (nsrsgcomp) which will pull back old savegroup notifications, if you want to get to the real guts of the messages, you can go browse the <strong>\/nsr\/logs\/sg<\/strong> directory:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4752\" alt=\"\/nsr\/logs\/sg 1\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_1.png\" width=\"572\" height=\"405\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_1.png 572w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_1-300x212.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a>Listing any directory will get you a selection of files such as the following:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4753\" alt=\"\/nsr\/logs\/sg 2\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_2.png\" width=\"572\" height=\"405\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_2.png 572w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_2-300x212.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a>By themselves, the filenames are hardly interesting. However, because each message that appeared in a recent savegroup is stored in these files, it does make plain text searching fairly straight forward:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4754\" alt=\"\/nsr\/logs\/sg 3\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_3.png\" width=\"572\" height=\"407\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_3.png 572w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/nsr_logs_sg_3-300x213.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a><\/p>\n<p>If you&#8217;re searching for errors to see how commonly they&#8217;ve occurred across all your clients for instance, it becomes as simple as going into the \/nsr\/tmp\/sg directory then running a search for the string across &#8220;*\/*&#8221; \u2013 all files in all subdirectories. Simple, quick, and efficient.<\/p>\n<p>If you&#8217;re wanting to increase the number of days that messages are kept for, edit the NetWorker server properties (not the server&#8217;s client instance) and increase the &#8220;Jobsdb retention in days&#8221;:<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/jobsdb-jobs-retention-in-days.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4757\" alt=\"jobsdb jobs retention in days\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/jobsdb-jobs-retention-in-days.png\" width=\"764\" height=\"472\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/jobsdb-jobs-retention-in-days.png 764w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2013\/04\/jobsdb-jobs-retention-in-days-300x185.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/a><\/p>\n<p>Be careful though \u2013 it&#8217;s generally recommended not to have this set to too long a period of time. (I&#8217;m somewhat curious if this restriction\/recommendation has been removed with the adoption of SQLite for the jobs database).&nbsp;If you want to search back longer, you may want to setup a process which automatically copies these files into another directory for longer term preservation \u2013 or for casual searches, recover older versions of the directory to alternate locations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A long time ago, in a NetWorker far, far away, all the output of a savegroup was included in the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[1145,1146,854],"class_list":["post-4751","post","type-post","status-publish","format-standard","hentry","category-basics","tag-nsrtmpsg","tag-log","tag-savegroup"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-1eD","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=4751"}],"version-history":[{"count":6,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4751\/revisions"}],"predecessor-version":[{"id":7466,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/4751\/revisions\/7466"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=4751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=4751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=4751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}