Zabbix Documentation 3.2

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:config:items:itemtypes:log_items

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:config:items:itemtypes:log_items [2018/12/20 07:52]
martins-v removing info that's duplicated over at the agent item section
manual:config:items:itemtypes:log_items [2018/12/20 08:06] (current)
martins-v
Line 32: Line 32:
 |//​Type// ​  ​|Select **Zabbix agent (active)** here.   | |//​Type// ​  ​|Select **Zabbix agent (active)** here.   |
 |//​Key// ​  |Use one of the following item keys:\\ **log[]** or **logrt[]**:​\\ These two item keys allow to monitor logs and filter log entries by the content regexp, if present.\\ For example: ''​log[/​var/​log/​syslog,​error]''​. Make sure that the file has read permissions for the '​zabbix'​ user otherwise the item status will be set to '​unsupported'​.\\ **log.count[]** or **logrt.count[]**:​\\ These two item keys allow to return the number of matching lines only.\\ See supported [[zabbix_agent#​supported_item_keys|Zabbix agent item]] key section for details on using these item keys and their parameters. ​ | |//​Key// ​  |Use one of the following item keys:\\ **log[]** or **logrt[]**:​\\ These two item keys allow to monitor logs and filter log entries by the content regexp, if present.\\ For example: ''​log[/​var/​log/​syslog,​error]''​. Make sure that the file has read permissions for the '​zabbix'​ user otherwise the item status will be set to '​unsupported'​.\\ **log.count[]** or **logrt.count[]**:​\\ These two item keys allow to return the number of matching lines only.\\ See supported [[zabbix_agent#​supported_item_keys|Zabbix agent item]] key section for details on using these item keys and their parameters. ​ |
-|//Type of information// ​ |For **log[]** or **logrt[]** items select ​''​Log'';​\\ ​for **log.count[]** or **logrt.count[]** items select ​''​Numeric (unsigned)''​.\\ If optionally using the ''​output''​ parameter, you may select the appropriate type of information other than ''​Log''​.\\ Note that choosing a non-Log type of information will lead to the loss of local timestamp. ​  |+|//Type of information// ​ |Select:​\\ ​For log[] or logrt[] items ''​Log'';​\\ ​For log.count[] or logrt.count[] items ''​Numeric (unsigned)''​.\\ If optionally using the ''​output''​ parameter, you may select the appropriate type of information other than ''​Log''​.\\ Note that choosing a non-Log type of information will lead to the loss of local timestamp. ​  |
 |//Update interval (in sec)// ​ |The parameter defines how often Zabbix agent will check for any changes in the log file. Setting it to 1 second will make sure that you get new records as soon as possible. ​ | |//Update interval (in sec)// ​ |The parameter defines how often Zabbix agent will check for any changes in the log file. Setting it to 1 second will make sure that you get new records as soon as possible. ​ |
 |//Log time format// ​  |In this field you may optionally specify the pattern for parsing the log line timestamp.\\ If left blank the timestamp will not be parsed.\\ Supported placeholders:​\\ ​    * **y**: //Year (0001-9999)//​\\ ​    * **M**: //Month (01-12)//​\\ ​    * **d**: //Day (01-31)//​\\ ​    * **h**: //Hour (00-23)//​\\ ​    * **m**: //Minute (00-59)//​\\ ​    * **s**: //Second (00-59)//\\ For example, consider the following line from the Zabbix agent log file:\\ " 23480:​20100328:​154718.045 Zabbix agent started. Zabbix 1.8.2 (revision 11211)."​\\ It begins with six character positions for PID, followed by date, time, and the rest of the line.\\ Log time format for this line would be "​pppppp:​yyyyMMdd:​hhmmss"​.\\ Note that "​p"​ and ":"​ chars are just placeholders and can be anything but "​yMdhms"​. ​  | |//Log time format// ​  |In this field you may optionally specify the pattern for parsing the log line timestamp.\\ If left blank the timestamp will not be parsed.\\ Supported placeholders:​\\ ​    * **y**: //Year (0001-9999)//​\\ ​    * **M**: //Month (01-12)//​\\ ​    * **d**: //Day (01-31)//​\\ ​    * **h**: //Hour (00-23)//​\\ ​    * **m**: //Minute (00-59)//​\\ ​    * **s**: //Second (00-59)//\\ For example, consider the following line from the Zabbix agent log file:\\ " 23480:​20100328:​154718.045 Zabbix agent started. Zabbix 1.8.2 (revision 11211)."​\\ It begins with six character positions for PID, followed by date, time, and the rest of the line.\\ Log time format for this line would be "​pppppp:​yyyyMMdd:​hhmmss"​.\\ Note that "​p"​ and ":"​ chars are just placeholders and can be anything but "​yMdhms"​. ​  |