Skip to content

Commit 45530fa

Browse files
authored
Exclude AMACoreAgent connect logs when OTLP is disabled (#1542)
* Exclude AMACoreAgent connect issue when OTLP is disabled * Exclude logs from RS * Additional filter
1 parent a3c92df commit 45530fa

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

build/linux/installer/conf/fluent-bit-common.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[INPUT]
1616
Name tail
1717
Alias ama-logs_mdsd_err_tail
18-
Tag oms.container.log.flbplugin.mdsd.*
18+
Tag oms.container.log.flbplugin.mdsd.err.*
1919
Path /var/opt/microsoft/linuxmonagent/log/mdsd.err
2020
Read_from_Head true
2121
DB /var/opt/microsoft/docker-cimprov/state/mdsd-ai.db
@@ -91,6 +91,18 @@
9191
Match oms.container.log.flbplugin.mdsd.qos.*
9292
regex log ^MaODSRequest,https.*_LogManagement_LINUX_SYSLOGS_BLOB
9393

94+
[FILTER]
95+
Name grep
96+
Alias ama-logs_mdsd_err_filter
97+
Match oms.container.log.flbplugin.mdsd.err.*
98+
# Exclude noisy AMACoreAgent startup tenant not started messages in RS
99+
# Consolidated exclusion of specific transient AMACoreAgent startup/connection retry messages:
100+
# - OtlpTokenFetcher AMACoreAgent tenant not started
101+
# - CreateSocket / ConnectToPipelineAgent socket connection failures to AMACoreAgent
102+
# - PAConnector::StartTenant / SendAmcsData failures
103+
# - "Will retry one more time in 5 seconds." retry notice (does not include AMACoreAgent keyword)
104+
Exclude log (OtlpTokenFetcher.*AMACoreAgent tenant not started|CreateSocket.*AMACoreAgent|ConnectToPipelineAgent.*AMACoreAgent|PAConnector::StartTenant.*AMACoreAgent|PAConnector::SendAmcsData.*AMACoreAgent|PAConnector::AmcsStopTenant.*AMACoreAgent|Will retry one more time in 5 seconds\.)
105+
94106
[FILTER]
95107
Name grep
96108
Alias ama-logs_amaca_log_tail

build/linux/installer/conf/fluent-bit-rs.conf

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
[INPUT]
2727
Name tail
28-
Tag oms.container.log.flbplugin.mdsd.*
28+
Tag oms.container.log.flbplugin.mdsd.err.*
2929
Path /var/opt/microsoft/linuxmonagent/log/mdsd.err
3030
Read_from_Head true
3131
DB /var/opt/microsoft/docker-cimprov/state/mdsd-ai.db
@@ -45,6 +45,18 @@
4545
Buffer_Size ${AZMON_FBIT_BUFFER_SIZE}
4646
Mem_Buf_Limit ${AZMON_FBIT_MEM_BUF_LIMIT}
4747

48+
[FILTER]
49+
Name grep
50+
Alias ama-logs_mdsd_err_filter
51+
Match oms.container.log.flbplugin.mdsd.err.*
52+
# Exclude noisy AMACoreAgent startup tenant not started messages in RS
53+
# Consolidated exclusion of specific transient AMACoreAgent startup/connection retry messages:
54+
# - OtlpTokenFetcher AMACoreAgent tenant not started
55+
# - CreateSocket / ConnectToPipelineAgent socket connection failures to AMACoreAgent
56+
# - PAConnector::StartTenant / SendAmcsData failures
57+
# - "Will retry one more time in 5 seconds." retry notice (does not include AMACoreAgent keyword)
58+
Exclude log (OtlpTokenFetcher.*AMACoreAgent tenant not started|CreateSocket.*AMACoreAgent|ConnectToPipelineAgent.*AMACoreAgent|PAConnector::StartTenant.*AMACoreAgent|PAConnector::SendAmcsData.*AMACoreAgent|PAConnector::AmcsStopTenant.*AMACoreAgent|Will retry one more time in 5 seconds\.)
59+
4860
[OUTPUT]
4961
Name oms
5062
EnableTelemetry true

0 commit comments

Comments
 (0)