{"id":322,"date":"2011-01-11T11:05:46","date_gmt":"2011-01-11T10:05:46","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=322"},"modified":"2013-02-01T13:01:56","modified_gmt":"2013-02-01T12:01:56","slug":"enable-remote-login-via-syslog","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=322","title":{"rendered":"Enable remote login via syslog"},"content":{"rendered":"<p>Edit the \/etc\/syslog.conf file to include local4.none in the second line, and to redirect the output of local4.* to \/var\/log\/whatever.log (replace whatever with a name of your choice).<\/p>\n<p>There&#8217;s a sample syslog.conf file at end of this hint.<\/p>\n<p>Create the Saved Logs folder in the desired location. In my example, it&#8217;s at the root of the Macintosh hard driv.<\/p>\n<p>Back up the daemon file to the desktop:<\/p>\n<pre>sudo cp \/System\/Library\/LaunchDaemons\/com.apple.syslogd.plist ~\/Desktop\/<\/pre>\n<p>Here is the restore line, if you need it:<\/p>\n<pre>sudo cp ~\/Desktop\/com.apple.syslogd.plist \/System\/Library\/LaunchDaemons\/<\/pre>\n<p>Edit the plist using the nano Unix editor:<\/p>\n<pre>sudo nano \/System\/Library\/LaunchDaemons\/com.apple.syslogd.plist<\/pre>\n<p>Scroll down to this line&#8230;<\/p>\n<pre>&lt;string&gt;\/usr\/sbin\/syslogd&lt;\/string&gt;<\/pre>\n<p>&#8230;and add the following directly below it:<\/p>\n<pre> &lt;string&gt;-u&lt;\/string&gt;<\/pre>\n<p>Save and exit.<\/p>\n<p>Use the following two lines to stop and restart the daemon:<\/p>\n<pre>sudo launchctl unload \/System\/Library\/LaunchDaemons\/com.apple.syslogd.plist\r\nsudo launchctl load \/System\/Library\/LaunchDaemons\/com.apple.syslogd.plist<\/pre>\n<p>Create or edit the \/etc\/daily.local to rotate the logs and restart the service:<\/p>\n<pre>sudo nano \/etc\/daily.local<\/pre>\n<p>See sample daily.local at end of this document, and remember to modify the log storage location as desired.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit the \/etc\/syslog.conf file to include local4.none in the second line, and to redirect the output of local4.* to \/var\/log\/whatever.log (replace whatever with a name of your choice). There&#8217;s a sample syslog.conf file at end of this hint. Create the &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=322\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-mac-os-x"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":6,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":2709,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/2709"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}