We have a situation where we are using logmon to monitor a file on a certain path on a server . (ie data/tlog/tps/1p/FileName) It searches the file just fine until there is an application upgrade by the vendor and all the sudden the vendor has changed the path to (data/tlog/tps/2p/Filename). What is the solution or workaround in order to adjust the file system path in this case from 1p to 2p as with a wild card or similar, so it is not always a manual intervention to constantly changing the file system location. 1p and 2p are just examples. it is possible they could change the /tps to /tpt as well. Both those two files system names appear to be changing. We need a solution to cover both cases individually or together.
so this would need to be a regex statement of some type.
You could try something simple such as:
as long as there are no other directories that this might then start scanning.
It might need to be more complex such as
If you know what the values could be than creating a regex statement to match those possibilities should work for you.
Hope this helps.
Thank You for your input, we’ll give it a try.
There are some idiosyncrasies with the matching:
What I found to work was "data/tlog/tps/^p$/FileName"
hi Patrick, if Gene or Garin's response worked for you, please mark their answer as correct that way we know you are good or of course tell us if more help needed. we want to know that too of course!