Solved

IIS Remote Log File scripting help required

Posted on 2009-07-07
5
439 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now