- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: SFTP Logging
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
12-26-2010 02:03 AM
12-26-2010 02:03 AM
SFTP Logging
Good day,
I was able to redirect all SFTP connection log to /var/adm/syslog/xferlog but it's giving me a lot of unnecessary information like connection open/close, changing directory ...
I only need information like the one FTP write. e.g. the username, IP address, action ( delete , rename , add ) with the file name.
So, can I do this ? because the file size is growing fast.
This is the parameters for SFTP :
sftp-server -f LOCAL0 -l INFO
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-26-2010 03:38 AM
12-26-2010 03:38 AM
Re: SFTP Logging
have a look at this thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1159249
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-26-2010 10:32 PM
12-26-2010 10:32 PM
Re: SFTP Logging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-27-2010 03:28 AM
12-27-2010 03:28 AM
Re: SFTP Logging
You may have to find or write a script to post-process the SFTP connection log, to discard the parts useless to you. If you wish, you could also convert the log to the xferlog format.
I could not find such a script quickly with Google. Perhaps nobody has done such a script before, or perhaps I didn't use the right keywords?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-27-2010 08:19 AM
12-27-2010 08:19 AM
Re: SFTP Logging
How are you doing?
I liked this idea, do you know how to do it?
If you wish, you could also convert the log to the xferlog format.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-27-2010 08:56 AM
12-27-2010 08:56 AM
Re: SFTP Logging
The format of the 'xferlog' is documented in the manpages: 'xferlog(5)'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-27-2010 10:44 AM
12-27-2010 10:44 AM
Re: SFTP Logging
Hope you doing well.
We need to turn off FTP and start using SFTP with logging. Now, every FTP session write single line to xferlog but SFTP writes a lot of line for single connection. I need to reduce these amount of lines.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-27-2010 12:40 PM
12-27-2010 12:40 PM
Re: SFTP Logging
> every FTP session write single line to xferlog but SFTP writes a lot of line for single connection. I need to reduce these amount of lines.
And Matti already suggested that you might read the SFTP log entries and reformat them into the form expected for 'xferlog'. My comment was that that format is documented in the manpages.
If you plan to turn *off* FTP altogether, I don't necessarily see any value to reformatting its log information into the 'xferlog' format. You need to first define what information you would want logged and if it is worth reducing the raw log entries into a more compact form. You need to define, too, what information you might want to gain from the log (raw or refined).
Regards!
...JRF...
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP