Solved

IIS Remote Log File scripting help required

Posted on 2009-07-07
5
442 Views
Last Modified: 2012-06-21
Hello,

There are 2 components to this issue, the first is that we are trying to dump IIS logs onto a remote share via UNC path, however the issue I have is that these servers are all in a Workgroup so NTFS permissions will not allow IIS to drop the logs directly to the UNC, they need to be generated locally and then scripted off to the UNC shares, this was addressed in a few other questions on this site.

The solution my boss now wants is to have a script that runs each night from a single server that pulls the logs from the servers and dumps them into the logging drive. So my question is this:
- Is it best practice to do this? I already have vbscript on the servers that moves the IIS logs according to date. It would be a lot easier to just use this than to write or steal a script that will pull the logs from multiple servers
- If we do have to write our own script Does anyone have anything that pulls data off remote drives?
- Would it be better to use VBscript or Powershell or just Robocopy and .bat scripts?

Thanks in advance.  
0
Comment
Question by:Cdewar
  • 3
5 Comments
 
LVL 70

Accepted Solution

by:
Chris Dent earned 250 total points
ID: 24801837

I can't tell you if this is best practice or not, I wasn't really aware of any best practices for this kind of thing.

You're sticking with connections to UNC paths / shares for this? So whatever method we use must authenticate? "net use" is likely to be the easiest choice for that.

You should use the language you're most comfortable with. If you're not comfortable with any then PowerShell does have quite a bit in its favour; mostly that it can do a lot with very little code which makes it a bit easier to learn.

Chris
0
 
LVL 23

Assisted Solution

by:Admin3k
Admin3k earned 250 total points
ID: 24802780
Here is what I do to ship logs from our IIS servers in DMZ (Workgroup) to our Logging server in domain
-created a local account on all webservers with a password that never expires , does not have to be admin.
-created same login on the server where the logs are dropped to, granted permissions on the share as needed.
- use the script to copy logs as needed from the servers using scheduled task



0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 24803529

The script needs to create the virtual directory as well I assume?

Chris
0
 
LVL 70

Expert Comment

by:Chris Dent
ID: 24803535

Hmm sorry... ignore my comment immediately above, wrong post.

Chris
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question