#Hello, #I'm trying to configure syslog-ng to log messages from local0 into a #directory under the /usr tree. #I'm sure that my configuration is correct, but the syslog-ng cannot #write the file. #When I switch to logging in /var tree, it works. #My question is: Cannot I log into another directory? # #-- #Att. #Marcus Vinícius S. Mendes #Cachoeira Paulista / SP - Brazil #National Institute for Space Research - INPE #Center for Weather Forecast and Climatic Analysis - CPTEC #(+55) 3186-8676 I haven't tried doing that but I guess it would work well as long as you create the destination facility for that directory and the daemon user has the correct permissions on the file. -- Regards, Fabian Pucciarelli
I was trying this configuration that don't works: ------------------------- # UNIDATA's LDM configuration filter f_ldm { facility(local0); }; destination ldmd { file("/usr/local/ldm/logs/ldmd.log" owner(ldm) group(unidata) perm(0644) ); }; log { source(src); filter(f_ldm); destination(ldmd); }; ------------------------- When I try this another configuration, it works: ------------------------- # UNIDATA's LDM configuration filter f_ldm { facility(local0); }; destination ldmd { file("/var/log/ldm/ldmd.log" owner(ldm) group(unidata) perm(0644) ); }; log { source(src); filter(f_ldm); destination(ldmd); }; ------------------------- Could you help me about? Fabian Pucciarelli escreveu:
#Hello, #I'm trying to configure syslog-ng to log messages from local0 into a #directory under the /usr tree. #I'm sure that my configuration is correct, but the syslog-ng cannot #write the file. #When I switch to logging in /var tree, it works. #My question is: Cannot I log into another directory? # #-- #Att. #Marcus Vinícius S. Mendes #Cachoeira Paulista / SP - Brazil #National Institute for Space Research - INPE #Center for Weather Forecast and Climatic Analysis - CPTEC #(+55) 3186-8676
I haven't tried doing that but I guess it would work well as long as you create the destination facility for that directory and the daemon user has the correct permissions on the file. -- Regards,
Fabian Pucciarelli ------------------------------------------------------------------------
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- Att. Marcus Vinícius S. Mendes Cachoeira Paulista / SP - Brazil National Institute for Space Research - INPE Center for Weather Forecast and Climatic Analysis - CPTEC (+55) 3186-8676
participants (2)
-
"Marcus Vinícius S. Mendes"
-
Fabian Pucciarelli