Operating System - HP-UX
1845582 Members
2855 Online
110246 Solutions
New Discussion

Cifs - too much in the logfile.. -every opened file is logged.

 
Thomas Greig
Regular Advisor

Cifs - too much in the logfile.. -every opened file is logged.

On our Hp-ux 11i with Samba version 2.2.8a based HP CIFS Server A.01.10, the following is put in the logfile everytime a user is opening a file:

"
[2006/03/07 11:13:34, 1] smbd/service.c:(636)
coe-8mfkl0j (172.22.1.106) connect to service data as user report (uid=240, gid=21) (pid 21182)
[2006/03/07 11:13:34, 1] smbd/service.c:(675)
coe-8mfkl0j (172.22.1.106) closed connection to service data
[2006/03/07 11:13:34, 1] smbd/service.c:(636)
coe-8mfkl0j (172.22.1.106) connect to service data as user report (uid=240, gid=21) (pid 21182)
[2006/03/07 11:13:34, 1] smbd/service.c:(675)
coe-8mfkl0j (172.22.1.106) closed connection to service data: is not a directory !
"

I still want to have some logging, but not every file every user is opening (can be up to 20 users). is it possible to only log errors?

smb.conf:
# Global parameters
[global]
workgroup = SURVEY
netbios name = ODIN
server string = Odin Samba Server
security = SHARE
log level = 1
log file = /var/opt/samba/log.%m
username = report
valid users = report

[multidata]
comment = Odin Offline UX Server - Multidata
path = /multidata
guest ok = Yes
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Cifs - too much in the logfile.. -every opened file is logged.

Shalom,

Try log level 0 or 2.

One of those is the default and will reduce log volume.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Steel
Honored Contributor

Re: Cifs - too much in the logfile.. -every opened file is logged.

Hi

log level = 0


log level (G)
The value of the parameter (an integer) allows the debug level
(logging level) to be specified in the smb.conf file. This is to
give greater flexibility in the configuration of the system.

The default will be the log level specified on the command line
or level zero if none was specified.

Example: log level = 3


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
eric roseme
Respected Contributor

Re: Cifs - too much in the logfile.. -every opened file is logged.

"log level = 0" only logs errors.

Also, use "max log size = 100" (or whatever) to configure the maximum log file size.

Also, I recommend upgrading to the A.02.02 version of HP CIFS Server if you can. If you cannot for some reason, then at least see if you can find an A.01.11.04 version. It's been removed from software.hp.com (for 11i), but you can find it on a CD set somewhere.

Eric Roseme
Joshua Scott
Honored Contributor

Re: Cifs - too much in the logfile.. -every opened file is logged.

from the smbd man page:

-d|--debug=debuglevel
debuglevel is an integer from 0 to 10. The default value if this
parameter is not specified is zero.

The higher this value, the more detail will be logged to the log
files about the activities of the server. At level 0, only criti-
cal errors and serious warnings will be logged. Level 1 is a rea-
sonable level for day-to-day running - it generates a small
amount of information about operations carried out.

Levels above 1 will generate considerable amounts of log data,
and should only be used when investigating a problem. Levels
above 3 are designed for use only by developers and generate HUGE
amounts of log data, most of which is extremely cryptic.

Note that this can also be set in /etc/opt/samba/smb.conf (man 5 smb.conf).

Josh
What are the chances...