- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Separate ftp log
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
04-12-2004 04:17 PM
04-12-2004 04:17 PM
Separate ftp log
I want to create a separate log file that will only have ftp related log. I donot want ftp information to be in the syslog.log.
What changes do i need to do in syslog.conf or in any other configuration file.
Tariq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2004 05:06 PM
04-12-2004 05:06 PM
Re: Separate ftp log
You can do the following periodically and redirect the output to some file.
grep "FTP" syslog.log
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2004 05:21 PM
04-12-2004 05:21 PM
Re: Separate ftp log
Add this to /etc/syslog.conf
local5.info;mail.none /var/adm/syslog/ftp.log
Then get syslogd to re-read it's config.
# kill -HUP `cat /var/run/syslog.pid`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2004 05:28 PM
04-12-2004 05:28 PM
Re: Separate ftp log
This will create all entries to ftplog? I donot want to do that. I want only ftp entries will go to ftplog and all other entries will go to syslog like now.
Tariq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2004 09:04 PM
04-12-2004 09:04 PM
Re: Separate ftp log
No not all syslog messages will go to this log, only local5 messages.
I tried to find a link with the spec of all local0 .. local7 entries you can use, but without succes.(read also the manpage of syslog)
I assume what the previous post does is, route all the messages from ftpd (or from inetd?) to the new logfile.
So other messages are still logged to syslog.log.
HTH,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2004 09:16 PM
04-12-2004 09:16 PM
Re: Separate ftp log
Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214847
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2004 12:48 AM
04-13-2004 12:48 AM
Re: Separate ftp log
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
daemon.info;mail.none /var/adm/syslog/daemon.log
*.info;mail.none,daemon.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
However - that will log all daemons - including MC/SG....
After changes, make syslogd re-read the file:
kill -HUP `cat /var/run/syslog.pid`
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2004 01:57 AM
04-13-2004 01:57 AM
Re: Separate ftp log
You can keep records of all files received & transmitted by the ftp server by using -i & -o on the ftpd command line in /etc/inetd.conf.
File logged to would be /var/adm/syslog/xfer.log
You can also enable the same functionality by making the following entries in the /etc/ftpd/ftpaccess file:
log commands real
log transfers anonymous,real inbound, outbound
The connections themselves would still be recorded in syslog.log, but the actual ftpd actions will be in xfer.log
man ftpd, ftpaccess, & xferlog for further details.
HTH,
Jeff