I get error "No log files to analyze" when I run analysis from the scheduler, how can I fix it?

Avatar
  • updated
  • Answered
I get error "No log files to analyze" when I run analysis from the scheduler, how can I fix it?
mapped drive network drive no log files schedule
Avatar
Michael Deschenes
Not sure if this helps, I'm using a simple script to simply mount the unc path and runs find without specifying an account: My simple setup example:

Task Properties (Schedule)
- Pre-processing (Run command before performing the scheduled action)
Command: C:\scripts\pre-mapdrive.bat
Run in: C:\scripts

pre-mapdrive.bat (simply maps the drive to specific unc path)
net use Y: \\server1\logpath

Schedule runs process in background without any issues.
Avatar
tttechsolutions
Quote from rickyck8lau
what mean by "account name and password in the schedule options"
What they refering to?
Make sure you enter domain\account and password. It works for me.
Good luck.
Avatar
Michael
Quote from rickyck8lau


How to fix it?
Statistics on load balanced servers is shown under "Access Statistics > Servers", not under "Access Statistics > Virtual Domains".

If this table isn't shown, you should check the this report is enabled in "Options > Report > Contents" or in "Profile Properties > Report > Custom report contents" (if you use the custom report contents for the profile). You should also check that you use the "Multiple" log mode with "Load balanced" option checked in "Profile Properties > Log Files".
Avatar
rickyck8lau
Quote from rickyck8lau


How to fix it?
I have separate folder for them.

But I see there are no result under Access statistics --> virtual domains
in the report

How can I show the result from two loaded balanced servers?
Avatar
Michael
Quote from rickyck8lau


How to fix it?
Thank you, we have received the screenshots. They seem to be OK. I think that there is a problem with either permissions for the folder or some system sofware (e.g. firewall) that doesn't allow the program to access the shared folder when running from the schedule.

It seems that the best solution in your case is to try to allow access to this folder to the computer on which WebLog Expert is running. You can find information on how to do it at http://serverfault.com/a/135874 . After it you can siwtch the schedule to the local system account and it should work now.

If it doesn't help, it seems that the only solution is to use FTP instead of shared folders to access the files. You can set an FTP account (or use an existing one) for the log folder and then set WebLog Expert to download log files via FTP.
Avatar
rickyck8lau
Quote from rickyck8lau


How to fix it?
I have email those screen capture to you
Avatar
Michael
Quote from rickyck8lau


How to fix it?
If you use full UNC path as well as custom account name and password, and it still doesn't work, maybe the problem appears because it is necessary to specify a custom username and password to access the shared folder. In this case you have two options:

1. You can set another script/program to copy log files to your computer, so WebLog Expert will simply read them from the local drive.

2. You can use the net use command (with necessary parameters) in the schedule task properties, "Pre-Processing" tab to map the UNC path to a mapped drive. In this case you also need to use this mapped drive in the log path instead of the full UNC path. E.g. you can use a command like the following:

net use e: \\server2\logs MyPassword /user:Admins\Dan

and then enter E:\*.log as log path in the profile properties.

If it doesn't help, could you please provide screenshots of the following dialogs: "Profile Properties > Log Files", "Schedule Options", "Task Properties > Action" (for the "Testing" task) and "Task Properties > Pre-Processing". If you wish you can send them to us privately by email to support@weblogexpert.com . Maybe we'll be able to determine the problem after reviewing this screenshots.
Avatar
rickyck8lau


How to fix it?
Avatar
rickyck8lau
Quote from rickyck8lau
what mean by "account name and password in the schedule options"
What they refering to?
I have using full UNC path

1. I manually run sucess
2. I schedulely run it the log show "There are no log file to analyze"

When I change to use the specified account

1. schedulelly run the log show attached log.

I sure the account is correct
Avatar
Michael
Quote from rickyck8lau
what mean by "account name and password in the schedule options"
What they refering to?
Yes, you need to choose "Local file" as log location. Have you entered full UNC path in \\ComputerName\SharedFolder\Resource format? If so but it's still doesn't work from the schedule (while it works when you run it manually), there should be a problem with account specified in the schedule settings. You should try to specify another account, e.g. enter your Windows username/password.

The problem with the schedule appears because the schedule works as a system service. So by default it runs analysis under the "local system" account that doesn't have access to network. So you need to enter an account that can access the network. Mapped drives cannot be used in any case as they aren't mapped when the scheduler runs WebLog Expert, so only full UNC paths work.