Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I have a bunch of compressed (GZ) log files and I want to search only the log files which have been compressed in the last 24 hours. The log files themselves do not have the correct date so I want to search by the modified date of the GZ file rather than the log file itself.

Just running a search with the GZIP archive extension switched on will correctly search all the log files but if I try and add some modified date criteria it uses the modified date of the log file not the date of the GZ file.

Is it possible to search by the date of the container?

by (715 points)

1 Answer

+1 vote

You can do it but it will involve two separate searches. One to search for the GZ files and a second to search inside them.

A simple search for: *.gz with a Modified date: of Today -24 hrs will find the target GZ files, e.g.

Search for GZ files

Then to search inside those found files select the menu option File->Search Result List. Make sure that the GZIP extension is switched on in the Compressed Files tab and you can then search just those GZ files found in the first step:

alt text

Using just the command line

If you want to do the same thing via an automated process you'll need to add an extra step to export the list of GZ files found to a text file. There's a specific custom format for exporting just the file names called fullname_only.xsl.

"C:\program files\mythicsoft\filelocator pro\filelocatorpro.exe" "E:\SearchForGZ.srf" -o "e:\files.txt" -ofxslt "C:\Program Files\Mythicsoft\FileLocator Pro\Sample Transforms\fullname_only.xsl"

Then using the File List functionality specify the generated text file in the Look In field to target the GZ files to search, e.g. as seen from the UI:

Using file lists

Note: The '=' sign in front of the text file is very important. Without it the text file would be searched as a normal file, with the '=' sign the text file is used to actually LOAD the Look In field.

by (30.1k points)
...