Please give us advice on the Zabbix entry key regular expression
Hello, I am a user using zabbix in Korea.
logrt.count["/example/.*/([0-9]{1,5}_)?[a-zA-Z]{1,30}\.log$","INFO",,1000,skip]
I'm going to apply it to Zabbix item key like key above to collect the strings of all the log files in directory below example directory.
When you register item by applying key above, Not found directoy error is marked and the item status is marked "Not supported".
It works well if you insert the original directory name without expressing the subdirectory with a regular expression.
There are about 15 subdirectories, so I want to manage them as one item. Is there a regular expression that includes all directories in the Zabbix item key regular expression? Or let me know if there is any other good way.
Thank you!
Hello, I am a user using zabbix in Korea.
logrt.count["/example/.*/([0-9]{1,5}_)?[a-zA-Z]{1,30}\.log$","INFO",,1000,skip]
I'm going to apply it to Zabbix item key like key above to collect the strings of all the log files in directory below example directory.
When you register item by applying key above, Not found directoy error is marked and the item status is marked "Not supported".
It works well if you insert the original directory name without expressing the subdirectory with a regular expression.
There are about 15 subdirectories, so I want to manage them as one item. Is there a regular expression that includes all directories in the Zabbix item key regular expression? Or let me know if there is any other good way.
Thank you!
Comment