Skip to Content

Log file monitoring troubles

Hi all,

I'm having some troubles setting up log file monitoring in SAP solution manager 7.1SP12. The metric remains grey...

My step are:

- creating a metric "File text pattern search" and activate it

- adding it to alert "log file monitoring"

- allowing sapservice<sid> to have read access to the directory that is monitored

- adding the monitored logfile path to the SAPCCMSR.INI file (working directory of the agent)

- restarting the agent

result is still a grey metric

Any ideas?

Kind regards,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 04, 2015 at 02:09 PM

    Hi Kenny, Can you attach screenshot of configuration especially mandatory parameters Please note the following Parameters: FOLDER (mandatory): Absolute full path to the folder containing the monitored file(s). Wild cards are not possible. Please always quote the folder with \Q and \E. An example would be \Qc:\logs\E. FILEPATTERN (mandatory): Regular expression for file name. Please always quote the file pattern with \Q and \E. An example would be \Qexample\.log.*\E. SEARCHPATTERN (mandatory): Text pattern to be searched for as regular expression. The regular expression has to match to a complete logline in the analysed file. Kind regards, Roland

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Roland,

      We are monitoring file1.txt on a windows server named "server1". The file1.txt is located on the E-disk > folder1 > folder11 > file1.txt

      and the pattern we are searching for is *ERROR* somewhere in the file1.txt.

      The template we are using in technical monitoring is a copy of the windows template and is assigned to "server1".

      I've added in the SAPCCMSR.INI file for the host agent following line:

      LogFile \\Server1\E$\folder1\folder11

      then I have restarted the host agent.

      The metric we created is a File Text Pattern Search with following settings:

      DATEPATTERN: yyyy-MM-dd

      DELTA_READ: True


      FILEPATTERN: \Q*file*\E

      FOLDER: \Q\\Server1\E$\folder1\folder11\E


      SEARCHPATTERN: *error*

      SHOW_MATCHES: yes

      The metric is checked every minute and has to be "red" if there is "1" ERROR

      I assigned the metric to the existing alert "logfile monitoring"

      After that, I just saved and reactivated the assignment for the windows template to "server1".

      Could you maybe help us out with this information?

      Best regards,


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.