Ad Widget

Collapse

Find specific string in log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bab
    Senior Member
    • Aug 2020
    • 196

    #1

    Find specific string in log file

    I want to find a specific string in a log file
    this is my string "errorCode":"300"

    So I used from this key with zabbix agent active

    log["/usr/local/wildfly/wildfly-rojects/standalone/log/s.log","errorCode:00",,,skip,\0]

    with this trigger :

    nodata(/su/log["/usr/local/wildfly/wildfly-rojects/standalone/log/s.log","errorCode:00",,,skip,\0],30s)=0

    now it is showing errorCode:00 in my s.log file but cannot fire trigger .
    Do I have to change string syntsx to find errorCode:00 ?
  • bab
    Senior Member
    • Aug 2020
    • 196

    #2
    Would you please help me about it ?

    Comment

    Working...