DX Infrastructure Manager

Expand all | Collapse all

Logmon to wildcard folders

  • 1.  Logmon to wildcard folders

    Posted 03-13-2018 04:11 PM

    Hi All,

    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.



  • 2.  Re: Logmon to wildcard folders

    Posted 03-14-2018 08:35 AM

    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.

  • 3.  Re: Logmon to wildcard folders

    Posted 03-14-2018 02:10 PM

    Thank You for your input, we’ll give it a try.

  • 4.  Re: Logmon to wildcard folders

    Posted 03-14-2018 04:03 PM

    There are some idiosyncrasies with the matching:


    What I found to work was "data/tlog/tps/^[12]p$/FileName"

  • 5.  Re: Logmon to wildcard folders

    Posted 03-16-2018 10:13 AM

    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!