LevelBlue Completes Acquisition of Cybereason. Learn More
Get access to immediate incident response assistance.
One method of log file retrieval, in addition to the use of wildcards, is to specify a date macro. This specification may also be used as a naming convention for reports so that the reports are not overwritten.
Examples:
ex%yyyy%%mm%%dd%.logPulls todays log file - ex20010526.log
ex%yyyy%%mm%%dd%.log
ex%yyyy%%mm-1%%dd%.logPulls last months log file - ex20010426.log
ex%yyyy%%mm-1%%dd%.log
ex%yyyy%%mm%%dd-5%.logPulls the log file from five days ago - ex20010521.log
ex%yyyy%%mm%%dd-5%.log
ex%yyyy-1%%mm%%dd%.logPulls last years log file - ex20000526.log
ex%yyyy-1%%mm%%dd%.log
log%yyyy%%dy%.txtPulls todays log file - log200153.txt
log%yyyy%%dy%.txt
log%yyyy%%dy%.txtPulls todays log file where log file name is log200179.txt[79 is the day of the year]
log%yyyy%%wy%.txtPulls this weeks log file where log file name is log200112.txt[12 is the week of the year]
log%yyyy%%wy%.txt
log%yyyy%%Mon%%wm%.txtPulls this weeks log file where log file name is log2001Mar3.txt[3 is the week of the month]* * * Notice the case sensitivity of %Mon% - Mar
log%yyyy%%Mon%%wm%.txt
%Mon%
log%yyyy%%wy%%dw%.txtPulls todays log file where the log file name is log2001122.txt[12 is the week of the year and 2 is the day of the week]
log%yyyy%%wy%%dw%.txt
Start %Date-8%%mm%/ %dd%/%yyyy%
%Date-8%%mm%
%dd%
%yyyy%
End %Date-1%%mm%/ %dd%/%yyyy%
%Date-1%%mm%
This article was previously published as: NETIQKB986
To contact LevelBlue about this article or to request support: