Link to home
Start Free TrialLog in
Avatar of DarrenBolton
DarrenBolton

asked on

IIS6 logging to an other Server in a Workgroup?

In our new Webfarm that Im working on we currently have the following.

1 Windows 2003 Standard Server setup with a share called Weblogs

3x Windows 2003 Web Servers in a NLB cluster.

What I want to be able to do is dump the logs onto the log server but with the servrs not being in a domain im having problems with accessing the share on the log server.

Originally I created an account on all 4 servers that was identical and gave that full access to the share on the log server, then on the servers I added a startup script in gpedit to launch the following batch file at startup.

@echo off
net use \\server_name\share_name /USER:Test test /PERSISTENT:YES
exit


This does not work though, so how else could I do this? Could I run IIS Service using this account that is identical on all the servers and the log server so that it will have access? or is it not recommended to change the account the IIS service run's with?

Any idea's would be greating appreciated.

King regards.

Darren Bolton
Systems Administrator
Avatar of belatucad
belatucad

alternatively you could give the account IIS runs with access to the share ;\

you could just schedule a job to copy the files over nightly or something also, and run it as whatever user you want, without modifying IIS at all
Avatar of DarrenBolton

ASKER

Disk space is an issue thats why im wanting the log to another server, i won't be able to grant the account that IIS is running under because the servers arn't in a domain
IIS can't log to anything but it's local hard drive.  

http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/windowsserv/2003/standard/proddocs/en-us/log_savinglogfiles.asp?sd=gn&ln=en-ca&gssnb=1

Explains very briefly that you can't, but there is a doc out there that explains fully why I just can't find it at the moment.

We ran into this issue and we are currently hosting 8 Web Servers.  To work around this we've scheduled a batch file to copy the logs once a week to a network share then delete the logs out of the directory.  You lose approx 1 minute tops of log file information, but it's the cleanest way of doing it.
Darren - as dmox and I said, schedule a copy(move) of the log files nightly(or as often as you want)

ASKER CERTIFIED SOLUTION
Avatar of Dave_Dietz
Dave_Dietz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've tried the method that you have given me and it does not appear to work, when I try and connect to the share I get "Bad username or password"
Finally got it working!

Had to enable the "Let Everyone Permissions apply to anonymous users" for it to work.