- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- inetdand ftpd logs pollute my syslog
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 02:55 AM
10-15-2002 02:55 AM
inetdand ftpd logs pollute my syslog
I have ftp connections every five minutes on a server and 2 messages are added in syslog.log every time :
Oct 15 12:23:45 hawking telnetd[7136]: getpid : peer died: Error 0
Oct 15 12:23:45 hawking ftpd[7137]: connection from admin2 at Tue Oct 15 12:23:45 2002
How can I redirect to another file these messages which pollute my syslog.log, in order to keep interesting messages ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 03:09 AM
10-15-2002 03:09 AM
Re: inetdand ftpd logs pollute my syslog
You can stop the ftp messages going to syslog one of 2 ways;
1. Remove the -L option form /etc/inetd.conf on the ftpd line.
2. In /etc/syslog.conf change;
*.info;mail.none /var/adm/syslog/syslog.log
To
*.info;mail.none;ftpd.none /var/adm/syslog/syslog.log
Then restart syslog.
But I dont think you can redirect ftp log messages to somewhere else apart from syslog. According to the manpage for ftpd they can only be logged to syslog and ive tried modifying the /etc/syslog.conf file to redirect ftp messages to a different log but it doesnt work - fptd must be writing direct to syslog.log itself (not via syslog daemon) so youre out of luck on redirecting im afraid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 03:30 AM
10-15-2002 03:30 AM
Re: inetdand ftpd logs pollute my syslog
This entry:-
Oct 15 12:23:45 hawking telnetd[7136]: getpid : peer died: Error 0
is not from an ftp but from a telnet connection being dropped as oposed to closed.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 03:51 AM
10-15-2002 03:51 AM
Re: inetdand ftpd logs pollute my syslog
As has been said a redirect is not possible but !!!
Cron a job to do :-
cat /var/adm/syslog/syslog.log | grep ftpd > /var/adm/syslog/sys_ftp.log
cat /avar/adm/syslog/syslog.log | grep -v ftpd > /var/adm/syslog/syslog.clean
cp /var/adm/syslog/syslog.log /var/adm/syslog.bak
mv /var/adm/syslog/syslog.clean /var/adm/syslog/syslog.log
Or you could keep this as a script and run it as and when.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 03:51 AM
10-15-2002 03:51 AM
Re: inetdand ftpd logs pollute my syslog
Sorry I have reread your question.
As has been said a redirect is not possible but !!!
Cron a job to do :-
cat /var/adm/syslog/syslog.log | grep ftpd > /var/adm/syslog/sys_ftp.log
cat /var/adm/syslog/syslog.log | grep -v ftpd > /var/adm/syslog/syslog.clean
cp /var/adm/syslog/syslog.log /var/adm/syslog.bak
mv /var/adm/syslog/syslog.clean /var/adm/syslog/syslog.log
Or you could keep this as a script and run it as and when.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 04:38 AM
10-15-2002 04:38 AM
Re: inetdand ftpd logs pollute my syslog
Also see:-
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4765c1c4ceddd61190050090279cd0f9,00.html
And pay attention to Darrell's post.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:19 AM
10-15-2002 05:19 AM
Re: inetdand ftpd logs pollute my syslog
The entry ftpd.* is not accepted in syslog.conf (I checked it with syslogd -d)
ftp logs are logs among all daemon logs.
And it's a "All or nothing" choice !
So I just wrote a script to clean logs when needed :
if [[ -n "$1" && -r "$1" ]]; then
SYSLOG=$1
else
SYSLOG=/var/adm/syslog/syslog.log
fi
cat $SYSLOG | grep -v -e "hawking telnetd\[[0-9]*\]: getpid : peer died: Error 0$" -e "hawking ftpd\[[0-9]*\]: connection from admin2 at"
Thanks for your help understanding the syslog.conf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 08:59 AM
10-15-2002 08:59 AM
Re: inetdand ftpd logs pollute my syslog
ftpd logs to LOCAL5. Redirect that to another file.
inetd logs to DAEMON. I'm not sure to where telnetd sends its logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 01:45 AM
10-16-2002 01:45 AM
Re: inetdand ftpd logs pollute my syslog
Perhaps it is valid for HP-UX 11...