Skip to content

Commit 847e37e

Browse files
committed
[discovery/receiver] Remove severity_text
Remove severity_text field from statements config and emitted logs. This is needed for moving from discovery logs to entity events. The value from the severity_text field is just added as severity text to emitted log message which is not being used by the discovery config provider. Even if the evaluated log record has it's own log level, it will be overridden by the severity_text value set in the statement. And all the discovery statements have "info" values set in the severity_text field. Later, we might want to add a `level` field in the statement that would be used to filter logs by a specific level, but it's not how the severity_text used right now.
1 parent 9cb40af commit 847e37e

File tree

44 files changed

+134
-419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+134
-419
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### 🛑 Breaking changes 🛑
6+
7+
- (Splunk) `receiver/discovery`: Remove `severity_text` field from log evaluation statements. ([#4583](https://github.com/signalfx/splunk-otel-collector/pull/4583))
8+
59
## v0.97.0
610

711
### 🚀 New components 🚀

cmd/otelcol/config/collector/config.d.linux/receivers/mysql.discovery.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,18 @@
2222
# - strict: mysql.locks
2323
# first_only: true
2424
# log_record:
25-
# severity_text: info
2625
# body: Mysql receiver is working!
2726
# statements:
2827
# failed:
2928
# - regexp: "Can't connect to MySQL server on .* [(]111[)]"
3029
# first_only: true
3130
# log_record:
32-
# severity_text: info
3331
# append_pattern: true
3432
# body: The container cannot be reached by the Collector. The container is refusing MySQL connections.
3533
# partial:
3634
# - regexp: 'Access denied for user'
3735
# first_only: true
3836
# log_record:
39-
# severity_text: info
4037
# append_pattern: true
4138
# body: >-
4239
# Make sure your user credentials are correctly specified using the

cmd/otelcol/config/collector/config.d.linux/receivers/oracledb.discovery.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,33 @@
2323
# - strict: oracledb.cpu_time
2424
# first_only: true
2525
# log_record:
26-
# severity_text: info
2726
# body: oracledb receiver is working!
2827
# statements:
2928
# failed:
3029
# - regexp: "connection refused"
3130
# first_only: true
3231
# log_record:
33-
# severity_text: info
3432
# append_pattern: true
3533
# body: The container is not serving http connections.
3634
# - regexp: "received goaway and there are no active streams"
3735
# first_only: true
3836
# log_record:
39-
# severity_text: info
4037
# append_pattern: true
4138
# body: Unable to connect and scrape metrics.
4239
# - regexp: "dial tcp: lookup"
4340
# first_only: true
4441
# log_record:
45-
# severity_text: info
4642
# append_pattern: true
4743
# body: Unable to resolve oracledb tcp endpoint
4844
# - regexp: 'error executing select .*: EOF'
4945
# first_only: true
5046
# log_record:
51-
# severity_text: info
5247
# append_pattern: true
5348
# body: Unable to execute select from oracledb. Verify endpoint and user permissions.
5449
# partial:
5550
# - regexp: "listener does not currently know of service requested"
5651
# first_only: true
5752
# log_record:
58-
# severity_text: info
5953
# append_pattern: true
6054
# body: >-
6155
# Make sure your oracledb service is correctly specified using the
@@ -64,7 +58,6 @@
6458
# - regexp: 'invalid username/password'
6559
# first_only: true
6660
# log_record:
67-
# severity_text: info
6861
# append_pattern: true
6962
# body: >-
7063
# Make sure your user credentials are correctly specified using the

cmd/otelcol/config/collector/config.d.linux/receivers/postgresql.discovery.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,23 @@
2222
# - strict: postgresql.commits
2323
# first_only: true
2424
# log_record:
25-
# severity_text: info
2625
# body: PostgreSQL receiver is working!
2726
# statements:
2827
# failed:
2928
# - regexp: 'connect: network is unreachable'
3029
# first_only: true
3130
# log_record:
32-
# severity_text: info
3331
# append_pattern: true
3432
# body: The container cannot be reached by the Collector. Make sure they're in the same network.
3533
# - regexp: 'connect: connection refused'
3634
# first_only: true
3735
# log_record:
38-
# severity_text: info
3936
# append_pattern: true
4037
# body: The container is refusing PostgreSQL connections.
4138
# partial:
4239
# - regexp: 'pq: password authentication failed for user'
4340
# first_only: true
4441
# log_record:
45-
# severity_text: info
4642
# append_pattern: true
4743
# body: >-
4844
# Please ensure your user credentials are correctly specified with
@@ -53,7 +49,6 @@
5349
# - regexp: 'pq: database .* does not exist'
5450
# first_only: true
5551
# log_record:
56-
# severity_text: info
5752
# append_pattern: true
5853
# body: >-
5954
# Make sure the target database is correctly specified using the
@@ -62,7 +57,6 @@
6257
# - regexp: 'pq: SSL is not enabled on the server'
6358
# first_only: true
6459
# log_record:
65-
# severity_text: info
6660
# append_pattern: true
6761
# body: >-
6862
# Make sure the target database has SSL enabled or set insecure using the
@@ -71,7 +65,6 @@
7165
# - regexp: 'pq: pg_stat_statements must be loaded via shared_preload_libraries'
7266
# first_only: true
7367
# log_record:
74-
# severity_text: info
7568
# append_pattern: true
7669
# body: >-
7770
# Make sure your PostgreSQL database has

cmd/otelcol/config/collector/config.d.linux/receivers/redis.discovery.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,28 @@
2020
# - strict: redis.uptime
2121
# first_only: true
2222
# log_record:
23-
# severity_text: info
2423
# body: redis receiver is working!
2524
# statements:
2625
# failed:
2726
# - regexp: "connection refused"
2827
# first_only: true
2928
# log_record:
30-
# severity_text: info
3129
# append_pattern: true
3230
# body: The container is not serving http connections.
3331
# - regexp: "received goaway and there are no active streams"
3432
# first_only: true
3533
# log_record:
36-
# severity_text: info
3734
# append_pattern: true
3835
# body: Unable to connect and scrape metrics.
3936
# - regexp: "dial tcp: lookup"
4037
# first_only: true
4138
# log_record:
42-
# severity_text: info
4339
# append_pattern: true
4440
# body: Unable to resolve redis tcp endpoint
4541
# partial:
4642
# - regexp: 'NOAUTH Authentication required.'
4743
# first_only: true
4844
# log_record:
49-
# severity_text: info
5045
# append_pattern: true
5146
# body: >-
5247
# Make sure your user credentials are correctly specified using the
@@ -57,7 +52,6 @@
5752
# - regexp: 'called without any password configured for the default user'
5853
# first_only: true
5954
# log_record:
60-
# severity_text: info
6155
# append_pattern: true
6256
# body: >-
6357
# Make sure your user credentials are correctly specified using the
@@ -66,7 +60,6 @@
6660
# - regexp: 'WRONGPASS invalid username-password pair or user is disabled'
6761
# first_only: true
6862
# log_record:
69-
# severity_text: info
7063
# append_pattern: true
7164
# body: >-
7265
# Make sure your user credentials are correctly specified using the

cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-mysql.discovery.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,18 @@
2626
# - strict: mysql_octets.rx
2727
# first_only: true
2828
# log_record:
29-
# severity_text: info
3029
# body: smartagent/collectd/mysql receiver is working!
3130
# statements:
3231
# failed:
3332
# - regexp: "mysql plugin: Failed to connect to database .* at server .* Can't connect to MySQL server on .* [(]111[)]"
3433
# first_only: true
3534
# log_record:
36-
# severity_text: info
3735
# append_pattern: true
3836
# body: The container is refusing MySQL connections.
3937
# partial:
4038
# - regexp: 'mysql plugin: Failed to connect to database .* at server .* Access denied for user .* [(]using password: .*[)]'
4139
# first_only: true
4240
# log_record:
43-
# severity_text: info
4441
# append_pattern: true
4542
# body: >-
4643
# Make sure your user credentials are correctly specified using the
@@ -51,7 +48,6 @@
5148
# - regexp: 'mysql plugin: Failed to connect to database .* at server .* Unknown database'
5249
# first_only: true
5350
# log_record:
54-
# severity_text: info
5551
# append_pattern: true
5652
# body: >-
5753
# Make sure your MySQL databases are correctly specified using the
@@ -60,7 +56,6 @@
6056
# - regexp: 'mysql plugin: Failed to connect to database .* at server .* Access denied for user .* to database'
6157
# first_only: true
6258
# log_record:
63-
# severity_text: info
6459
# append_pattern: true
6560
# body: >-
6661
# Make sure your MySQL databases and auth information are correctly specified using the

cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-nginx.discovery.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,16 @@
2424
# - strict: connections.accepted
2525
# first_only: true
2626
# log_record:
27-
# severity_text: info
2827
# body: smartagent/collectd/nginx receiver is working!
2928
# statements:
3029
# failed:
3130
# - regexp: "nginx plugin: curl_easy_perform failed: Operation timed out after"
3231
# first_only: true
3332
# log_record:
34-
# severity_text: info
3533
# append_pattern: true
3634
# body: The container is not serving http connections.
3735
# - regexp: "read-function of plugin .* failed"
3836
# first_only: true
3937
# log_record:
40-
# severity_text: info
4138
# append_pattern: true
4239
# body: The integration is unable to read metrics from this endpoint.

cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-postgresql.discovery.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@
2626
# - strict: postgres_query_count
2727
# first_only: true
2828
# log_record:
29-
# severity_text: info
3029
# body: PostgreSQL receiver is working!
3130
# partial:
3231
# - strict: postgres_rows_inserted
3332
# first_only: true
3433
# log_record:
35-
# severity_text: info
3634
# body: >-
3735
# Make sure that
3836
# `CREATE EXTENSION IF NOT EXISTS pg_stat_statements;`
@@ -44,20 +42,17 @@
4442
# - regexp: 'connect: network is unreachable'
4543
# first_only: true
4644
# log_record:
47-
# severity_text: info
4845
# append_pattern: true
4946
# body: The container cannot be reached by the Collector. Make sure they're in the same network.
5047
# - regexp: 'connect: connection refused'
5148
# first_only: true
5249
# log_record:
53-
# severity_text: info
5450
# append_pattern: true
5551
# body: The container is refusing PostgreSQL connections.
5652
# partial:
5753
# - regexp: 'pq: password authentication failed for user'
5854
# first_only: true
5955
# log_record:
60-
# severity_text: info
6156
# append_pattern: true
6257
# body: >-
6358
# Please ensure your user credentials are correctly specified with
@@ -68,7 +63,6 @@
6863
# - regexp: 'pq: database .* does not exist'
6964
# first_only: true
7065
# log_record:
71-
# severity_text: info
7266
# append_pattern: true
7367
# body: >-
7468
# Make sure the target database is correctly specified using the
@@ -77,7 +71,6 @@
7771
# - regexp: 'pq: pg_stat_statements must be loaded via shared_preload_libraries'
7872
# first_only: true
7973
# log_record:
80-
# severity_text: info
8174
# append_pattern: true
8275
# body: >-
8376
# Make sure your PostgreSQL database has

internal/confmapprovider/discovery/bundle/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Example `redis.discovery.yaml.tmpl`:
3131
- regexp: 'ERR AUTH.*'
3232
first_only: true
3333
log_record:
34-
severity_text: info
3534
body: >-
3635
Please ensure your redis password is correctly specified with
3736
`--set {{ configProperty "password" "<password>" }}` or
@@ -57,7 +56,6 @@ redis:
5756
- regexp: 'ERR AUTH.*'
5857
first_only: true
5958
log_record:
60-
severity_text: info
6159
body: >-
6260
Please ensure your redis password is correctly specified with
6361
`--set splunk.discovery.receivers.redis.config.password="<password>"` or

internal/confmapprovider/discovery/bundle/bundle.d/receivers/mysql.discovery.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,18 @@ mysql:
1818
- strict: mysql.locks
1919
first_only: true
2020
log_record:
21-
severity_text: info
2221
body: Mysql receiver is working!
2322
statements:
2423
failed:
2524
- regexp: "Can't connect to MySQL server on .* [(]111[)]"
2625
first_only: true
2726
log_record:
28-
severity_text: info
2927
append_pattern: true
3028
body: The container cannot be reached by the Collector. The container is refusing MySQL connections.
3129
partial:
3230
- regexp: 'Access denied for user'
3331
first_only: true
3432
log_record:
35-
severity_text: info
3633
append_pattern: true
3734
body: >-
3835
Make sure your user credentials are correctly specified using the

internal/confmapprovider/discovery/bundle/bundle.d/receivers/mysql.discovery.yaml.tmpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,18 @@
1414
- strict: mysql.locks
1515
first_only: true
1616
log_record:
17-
severity_text: info
1817
body: Mysql receiver is working!
1918
statements:
2019
failed:
2120
- regexp: "Can't connect to MySQL server on .* [(]111[)]"
2221
first_only: true
2322
log_record:
24-
severity_text: info
2523
append_pattern: true
2624
body: The container cannot be reached by the Collector. The container is refusing MySQL connections.
2725
partial:
2826
- regexp: 'Access denied for user'
2927
first_only: true
3028
log_record:
31-
severity_text: info
3229
append_pattern: true
3330
body: >-
3431
Make sure your user credentials are correctly specified using the

0 commit comments

Comments
 (0)