- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: samba log cleaning
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
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
тАО04-11-2006 06:41 AM
тАО04-11-2006 06:41 AM
we are setup for log level 1 and samba server at user level with about 300 users logging in. we just want some basic logging for troubleshooting, but it generates alot of logs. does anyone know of a script that cleans, lets say yesterdays logs, etc?
thx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 06:59 AM
тАО04-11-2006 06:59 AM
Re: samba log cleaning
max log size= ????
this will allow you to resrict the size of the log files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:00 AM
тАО04-11-2006 07:00 AM
SolutionThere is a problem in general with logging.
The default samba log creates a log for each user. This is annoying. I'd take the %m out of the log setup of smb.conf as a start and then end up with just one little log.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
Log rotate is a great tool for organizing and archiving logs.
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
тАО04-11-2006 07:13 AM
тАО04-11-2006 07:13 AM
Re: samba log cleaning
will try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 10:52 AM
тАО04-11-2006 10:52 AM
Re: samba log cleaning
There is no "problem" with CIFS/Samba logging. Samba logging is very configurable, so it is easy to configure the behavior that is correct for your environment.
We set the CIFS default logging config to use "%m" because that provides the most useful logging information. If you consolidate all of the user logs into a single file, you will have difficulty associating a user/session with a particular entry, so then data will be meaningless.
At "log level = 1" the data logged is minimal, and by setting the logfile size as Deoncia suggested, you can minimize the cumulative storage space required. Or, you can set the log level to 0 (which only logs errors).
You could also write a script that does a "> log.netbiosID" or "> log.IPaddress" for every log file in the /var/opt/samba directory. Run that daily and it will clear out all logged data, but leave the files.
These methods will leave you with 300 files, or possibly 600 files (depends on how your clients are connecting), but the data that you collect will be useful. If you do not require useful log data, then you can send all log data to smbd.log.
Eric Roseme