[ZBX-16125] Getting set of lines when monitoring log Created: 2019 May 14 Updated: 2019 May 14 Resolved: 2019 May 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 4.0.6 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | David | Assignee: | Zabbix Development Team |
Resolution: | Duplicate | Votes: | 0 |
Labels: | log | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Encountered a problem while monitoring logs -Information in the log is written in such blocks: 2019-03-01-00.01.11.006152+120 E2493A370 LEVEL: Error PID : 11927806 TID : 1 PROC : db2vend INSTANCE: db2 NODE : 000 HOSTNAME: srv1 EDUID : 1 FUNCTION: DB2 UDB, database utilities, sqluvput, probe:932 DATA #1 : TSM RC, PD_DB2_TYPE_TSM_RC, 4 bytes TSM RC=0x0000009D=157 – see TSM API Reference for meaning. Using a item log[/db2/\{$DBNAME}/db2dump/db2diag.log,"LEVEL: Error"] we manage to get a string in the last data 2019-05-14-08.00.01.005035+180 E1279614A870 LEVEL: Error The question is how to modify the item to get the whole block in the post-data, all the lines after "LEVEL: Error?" |
Comments |
Comment by dimir [ 2019 May 14 ] |
This issue tracker is international, please translate the ticket to English so that everybody can understand the issue. |
Comment by David [ 2019 May 14 ] |
Hi! 2019-03-01-00.01.11.006152+120 E2493A370 LEVEL: Error Using a item The question is how to modify the item to get the whole block in the post-data, all the lines after "LEVEL: Error?" |
Comment by richlv [ 2019 May 14 ] |
Duplicate of ZBXNEXT-1428. |
Comment by Alexander Vladishev [ 2019 May 14 ] |
Closed as duplicate. Please move all discussions to ZBXNEXT-1428. |