Ad Widget

Collapse

case-sensitive in log item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mma
    Member
    • Apr 2010
    • 39

    #1

    case-sensitive in log item

    Hi !

    I have a new problem. I saw some topics about that but no answers :
    I want to use the key log -> log[/tmp/zabbix_server.log,error] :
    My zabbix's log file is huge (what's why I prefer don't use log[/tmp/zabbix_server.log] )
    But this expreg finds "error" but no "Error" or "ERROR"...or even "errors", etc...
    And if someone know the date format of this file :
    example : 22893:20100413:153934.382
    format : ???:yMd:hms.???

    thank you !

    PS : I found an solution : log[/tmp/zabbix_server.log,[Ee][Rr][Rr][Oo][Rr]] but I didn't find the date format...
    PS2 : log[/tmp/zabbix_server.log,[Ee][Rr][Rr][Oo][Rr]] -> all lines are 'true', so not working
    Last edited by mma; 13-04-2010, 15:52.
  • trikke
    Senior Member
    • Aug 2007
    • 140

    #2
    Hi MMA,

    did u try: log[/tmp/zabbix_server.log,ERROR|Error|error]

    Greets
    Patrick

    Comment

    • mma
      Member
      • Apr 2010
      • 39

      #3
      Hi Trikke !

      I just tried your solution and it's work !
      I always search the date format of zabbix_server.log but I think it's not supported.

      Thank you very much !

      Comment

      Working...