- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script for not to see any line on 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
11-16-2003 03:01 PM
11-16-2003 03:01 PM
Can anyone tell me any script with what I don't want to see any particular line "Session closed" in my syslog which comes every frequently
Utpal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 03:16 PM
11-16-2003 03:16 PM
SolutionYou might want to add other filters by using -e as in:
grep -v -i -e "session closed" -e anonymous login" -e "accepted password" /var/adm/syslog/syslog.log
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 03:17 PM
11-16-2003 03:17 PM
Re: Script for not to see any line on syslog
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 03:23 PM
11-16-2003 03:23 PM
Re: Script for not to see any line on syslog
thanks for your mail.
But my question was not to see session closed rather to see see session closed. with your command I can on Session closed but I don't want to see that.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 04:52 PM
11-16-2003 04:52 PM
Re: Script for not to see any line on syslog
check the man page ftpd.
ftpd -l makes the log in syslog.log
You may disable -l option ftpd in "/etc/inetd.conf" file and restart ftpd.
Then you will never know some one used the ftp on the server.
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 06:24 PM
11-16-2003 06:24 PM
Re: Script for not to see any line on syslog
Can anyone tellme the script regarding that
Thanks
Utpal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 06:26 PM
11-16-2003 06:26 PM
Re: Script for not to see any line on syslog
grep -v -i "session closed" /var/adm/syslog/syslog.log
will not take up the session closed messages from syslog.
Please explain what you want in detail!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 06:28 PM
11-16-2003 06:28 PM
Re: Script for not to see any line on syslog
If you don't want to log messages session closed then go with above update. Otherwise use
grep -i "session closed" /var/adm/syslog/syslog.log
-Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 08:01 PM
11-16-2003 08:01 PM
Re: Script for not to see any line on syslog
If I understand you correctly, you want
ftpd to log the login information but don't want log "session closed" to syslog.
I don't think it's possible. I checked man page of ftpd.
Either you can enable logging by -l option or disable.
It's not possible to partially omit the log information.
Best way is create new syslog.new file extracted from current syslog and
use this file for your use.
# cd /var/adm/syslog
# grep -v "session closed" syslog.log > syslog.new
Regards
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2003 08:22 PM
11-16-2003 08:22 PM
Re: Script for not to see any line on syslog
My purpose is solved.
Utpal