Viewing 15 posts - 226 through 240 (of 686 total)
Can't seem to get original file to process gets errors listed above.. sample file will process.
Any thoughts or suggestions?
Thanks again
May 2, 2022 at 11:55 am
ZZartin, after I created my sample file that I attached, and ran your sample script against it worked, and dumped the tags out like expected.
The file contains CRLF for each...
May 1, 2022 at 11:26 am
Sorry Jeff, --- Thanks ZZartin for sample... I did include error messages from run
To you both sorry for not including a sample file to work from.. This sample has...
April 30, 2022 at 12:22 pm
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\PowerShell\autosys_parse_jobs.ps1:30 char:9
+ $key = $line.Substring(0, $index)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
Exception...
April 30, 2022 at 1:07 am
cool thanks... I'll give it a test against my file..
April 30, 2022 at 1:00 am
When I run this code:
It pops up a message:
cmdlet Export-Csv at command pipeline position 1
Supply values for the following parameters:
InputObject:
Not sure why it's doing this..
$match_array = "error",...
April 14, 2022 at 1:44 pm
I tried to goggle what you mentioned but above, but didn't find examples..
Thanks.
April 12, 2022 at 11:16 pm
Jeff,
Looks like your mockup is exactly what I looking for, it doesn't seem to be finding anything from match_array . Would case
have any bearing on Matches?
Thanks again for your help...
April 12, 2022 at 4:14 pm
Are you referring to the multiple job outputs? We have a nightly process that copies previous days logs\output to a archive folder, so actually we won't get multiple outputs.
April 12, 2022 at 11:02 am
I would like to maybe add a date to the process to show which day the error refers too.
April 11, 2022 at 10:38 pm
Sample output from csv:
#TYPE Selected.Microsoft.PowerShell.Commands.MatchInfo
"Path","LineNumber","Line"
"\\ftpsrv\logs\EXTRACT.20741061-1.stdout","102","Authentication failed."
It shows the Path with filename, and gives me the line in the file it found a match then the MESSAGE.
April 11, 2022 at 12:47 pm
I'm running thru folders where output from job processing happens and sometimes the product we use to run\schedule jobs
doesn't detect and error condition even though the SP or scripts output...
April 10, 2022 at 11:46 pm
Thanks very much for reply, and I know you said un-tested code, but I was trying to get values for the $found_files to see
what was returned and trying to understand...
April 10, 2022 at 11:04 pm
That is my struggle multiple get-childitem calls and storing outputs to single variable to dump to csv.
Thanks.
April 8, 2022 at 6:19 pm
The multiple folders are from different machines.
April 8, 2022 at 5:39 pm
Viewing 15 posts - 226 through 240 (of 686 total)