Yes, you need the rsyslog package installed:
[1:root@bb8 rsyslog 148]$ rpm -qf /etc/rsyslog.conf
rsyslog-8.38.0-1.fc27.x86_64
I have all my DHCP logging go to a separate file. To do this, comment out your log-facility in dhcpd.conf
and add this just after the '#### RULES ####' comment in /etc/rsyslog.conf:
if $programname == 'dhcpd' then {
action(type="omfile" file="/var/log/dhcpd.log")
# if $syslogseverity >= 4 then stop # warning
# if $syslogseverity >= 5 then stop # notice
if $syslogseverity >= 6 then stop # info
if $msg contains 'incoming update is less critical than outgoing update' then stop
}
Restart rsyslog "systemctl restart rsyslog.service".
Any severity greater than 'info' will also be logged to /var/log/messages.
Since you're adding a new log file, edit /etc/logrotate.d/rsyslog and add /var/log/dhcpd.log.
_______________________________________________Bill
On 10/18/2019 11:09 AM, Mark C. Allman wrote:
On 10/18/19 10:45 AM, Aaron Gray wrote:
I am having problems working out how to get proper non journal logging normal text logging for the DHCP server.Do you have the rsyslog package installed? That's what provides /etc/rsyslog.conf. The file /usr/share/doc/sudo/examples/syslog.conf is provided by the sudo package.
Theres the following statement in /etc/dhcp/dhcpd.conf :-
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
I cannot seem to find syslog.conf or rsyslog.conf in /etc
There is a /usr/share/doc/sudo/examples/syslog.conf documentation file but there are no syslog or syslog services.
--
Aaron Gray
Independent Open Source Software Engineer, Computer Language Researcher, Information Theorist, and amateur computer scientist.
*Mark C. Allman, PMP, CSM*
Founder, See How You Ski, www.seehowyouski.com <http://www.seehowyouski.com>
Sr. Project Manager, Allman Professional Consulting, Inc., www.allmanpc.com <http://www.allmanpc.com>
617-947-4263, Twitter: @allmanpc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx