- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- redirecting ftp entries.
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
Discussions
Discussions
Forums
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
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
тАО05-19-2004 06:41 PM
тАО05-19-2004 06:41 PM
Is there any way to log the ftp session entries in the .../syslog.dated/.../daemon.log file in a different file of our choice. If yes then how can it be done?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 12:24 AM
тАО05-20-2004 12:24 AM
Re: redirecting ftp entries.
Are you looking for a solution that will log individual ftp sessions in seperate logs like one ftp log for userA, another for userB and so on.
If this is what you are looking for let me know.
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 04:24 PM
тАО05-20-2004 04:24 PM
Re: redirecting ftp entries.
Not exactly. What I am looking for is to log all the ftp entries in a file other then daemon.log, so that it would be easy for me to trim that file as per my needs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 05:36 PM
тАО05-20-2004 05:36 PM
Re: redirecting ftp entries.
Try this and let me know if it works
1. Modify /etc/syslog.conf to add the
line below
local5.info;mail.none /var/adm/syslog/onlyftp.log
2. Restart syslogd to re-read it's config
using the command below
# kill -HUP `cat /var/run/syslog.pid`
Once this is done, make sure that the syslogd is running.
Now all your ftp related logging will be in /var/adm/syslog/onlyftp.log
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 09:10 PM
тАО05-20-2004 09:10 PM
Re: redirecting ftp entries.
I tried out your instructions. But the ftp entries are not diverted to the onlyftp.log file instead they are still logged in the daemon.log file. The only difference being that now the daemon.log file which previouly used to have other entries, now has only the ftp entries.
So tell me whether those other entries are imp. from the system point of view. If they are not I can run the system with these changes. I am attaching the daemon.log file in the form it was before carrying out the changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 09:28 PM
тАО05-20-2004 09:28 PM
Re: redirecting ftp entries.
It looks like there is another way, probably better than what i suugested. It involves modifying the inetd, check the link below (especially focus on Alexander's post)
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=214847
Hope this help you
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 10:12 PM
тАО05-20-2004 10:12 PM
Solutionso far I couldn't find anything to reroute the ftpd log at the source. Here is an alternative. There is one problem however. Once per day or when tha machine is rebooted, the current dir is switched. You could get ftpd log with grep. Is there any reason, why you want the ftpd log at another place?
hth,
Michael
tail -f /var/adm/syslog.dated/current/daemon.log | while read LINE
do
echo $LINE | grep ftpd >> /dir/ftpd.txt
done
this script is adapted from Bryan Quinn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2004 11:11 PM
тАО05-20-2004 11:11 PM
Re: redirecting ftp entries.
i m working fine now
shashang