Solved

IIS Remote Log File scripting help required

Posted on 2009-07-07
5
446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 71

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:Mohamed Osama
Mohamed Osama 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 71

Expert Comment

by:Chris Dent
ID: 24803529

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

Chris
0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 24803535

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

Chris
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

734 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