[ASK] Log pada DHCP Server

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar

[ASK] Log pada DHCP Server

Post 30 Nov 2011, 13:25

permisi para master linux...
aneh mau tanya seputar lDHCP linux, linux yang ane pakek Ubuntu 10.04 LTS Dekstop, ane install DHCP-server dan telah mengedit file /etc/dhcp3/dhcpd.conf pada file tersebut ada baris sebagai berikut :

log-facility local7;

yang ingin ane tanyakan :
# mohon penjelasan fungsi dari baris tersebut :

Terima kasih atas bantuan dan pencerahannya

User avatar

Post 30 Nov 2011, 16:31

Read The Fine Manual: dhcpd.conf(5) - Linux man page

search 'log-facility' klo nda nemu2 :grin:
The log-facility statement
log-facility facility;

This statement causes the DHCP server to do all of its logging on the specified log facility once the dhcpd.conf file has been read. By default the DHCP server logs to the daemon facility. Possible log facilities include auth, authpriv, cron, daemon, ftp, kern, lpr, mail, mark, news, ntp, security, syslog, user, uucp, and local0 through local7. Not all of these facilities are available on all systems, and there may be other facilities available on other systems.

In addition to setting this value, you may need to modify your syslog.conf file to configure logging of the DHCP server. For example, you might add a line like this:
local7.debug /var/log/dhcpd.log
The syntax of the syslog.conf file may be different on some operating systems - consult the syslog.conf manual page to be sure. To get syslog to start logging to the new file, you must first create the file with correct ownership and permissions (usually, the same owner and permissions of your /var/log/messages or /usr/adm/messages file should be fine) and send a SIGHUP to syslogd. Some systems support log rollover using a shell script or program called newsyslog or logrotate, and you may be able to configure this as well so that your log file doesn't grow uncontrollably.

Because the log-facility setting is controlled by the dhcpd.conf file, log messages printed while parsing the dhcpd.conf file or before parsing it are logged to the default log facility. To prevent this, see the README file included with this distribution, which describes how to change the default log facility. When this parameter is used, the DHCP server prints its startup message a second time after parsing the configuration file, so that the log will be as complete as possible.
Last edited by thrvers on 27 Feb 2016, 19:07, edited 1 time in total.
Reason: males buka link :D

User avatar

Post 01 Dec 2011, 09:27

Thank's bro thrvers udah comment, setelah ane lihat link tersebut, aneh pahami, berarti ane harus membuat local7.debug /var/log/dhcpd.log dengan mengedit file syslog.conf ya???

User avatar

Post 04 Dec 2011, 13:45

pentingkah membuat local7.debug /var/log/dhcpd.log dengan mengedit file syslog.conf
soalnya punyaku gak ada file konfigurasi ini /var/log/dhcpd.log dan dhcp di kantor berjalan normal

kalo log-facility local7 memang saya sertakan di /etc/dhcp3/dhcpd.conf, soalnya di beberapa literatur yang saya baca dan saya terapkan memang script ini disertakan..


User avatar

Post 08 Dec 2011, 10:09

bro error, mungkin penting untuk melihat history bro, cara mengedit file syslog.conf itu di mana filenya bro...


User avatar

Post 08 Dec 2011, 10:51

biasanya klo konfig2 di /etc

$ find /etc -iname syslog.conf

User avatar

Post 08 Dec 2011, 11:06

pake sintax : locate syslog.conf

soalnya tiap komputer biasanya beda"

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 70 guests