If you want LOCAL1 to be logged to a separate file you
- tell syslog so by properly editing its config file
- have syslogd reload its config by sending a
kill -HUP
.
Configuration
Add a specific line for local1, like this one
local1.* -/var/log/thelog.log
Before
*.*;mail.none;news.none -/var/log/messages
and remove local1 from the configuration for local?.*
local0.* -/var/log/localmessages
local2,local3.* -/var/log/localmessages
Once the configuration file is ready
kill -HUP <pid-of-syslogd>