LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   tftp-server on RHEL5 - How do I change logging for in.tftpd? (https://www.linuxquestions.org/questions/linux-server-73/tftp-server-on-rhel5-how-do-i-change-logging-for-in-tftpd-815501/)

don_wombat_73 06-21-2010 02:43 PM

tftp-server on RHEL5 - How do I change logging for in.tftpd?
 
I've been going nuts on trying to send my tftpd logs to a separate file. My google-foo has failed me, so I must ask for help.

Simply put, tftpd is logging messages to /var/log/messages. I would like them to be logged in a separate file called /var/log/tftp/tftp.log. Even more specifically, all I'm really after is messages like the code below. Just to tell me if IP address was successful or not at getting a file:
Code:

Jun 21 14:26:46 bc1 in.tftpd[34123]: RRQ from 10.23.1.3 filename file.cm
Here is my current /etc/xinetd.d/tftp file:

Code:

service tftp
{
        disable = no
        socket-type                = dgram
        protocol                  = udp
        wait                      = yes
        user                      = root
        server                    = /usr/sbin/in.tftpd
        server_args                = -s /tftpboot -v -v
        per_source                = 11
        cps                        = 100 2
        flags                      = IPv4
}

I've tried adding the line, but the desired results did not occur:

Code:

log_type = FILE /var/log/tftp/tftp.log
Can anyone recommend what the proper method of utilizing another file for logging of an xinetd process?

AlucardZero 06-22-2010 07:14 AM

How did you solve this?


All times are GMT -5. The time now is 11:24 AM.