0 Votes

Newest log file in a folder
Log In or Register to download the BES file, and more.


Relevance

 
  * Results in a "string"/number
Show indented relevance
(name of it, modification time of it) of items 1 of (maximum of modification times of files whose(name of it as lowercase ends with ".log") of it, files whose(name of it as lowercase ends with ".log" of it) of it) whose (item 0 of it = modification time of item 1 of it) of folder "C:\Temp"

Property Details

ID2998835
Status
TitleNewest log file in a folder
Added by
Last Modified by on 3/26/2014 7:58:15 AM
Counters 1 Download
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 1 rating. ** Log In or Register to add your rating.

Sharing

Relevance Image Sharing:

<a href='https://bigfix.me/cdb/relevance/2998835'><img src='https://bigfix.me/cdb/relevanceimage/2998835?width=400' border='0'></a>
Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
please ask for support on forum.bigfix.com as the comments here are not monitored.
jgstew -
exists (now - it) whose(it > 36 * hour) of maxima of modification times of files whose(name of it as lowercase ends with ".log") of folders "C:\Temp"
bdowell -
I'm trying to use the relevance above, but seem to be missing something as I'm getting back zero results in an analysis attempt that I'm working on. What my goal would be is to see what the most recent log file is, but if I go further, what I'm really looking for is to see if the most recent log file is not from the last 36 hours (give or take). Have you perhaps gone a little further with this sample in that area to compare and see if there was no file created within the last nn period? Thanks for any assistance you can lend in clarifying this sample code.