fix(libbeat): Prevent panic in replace processor for non-string values#47009
Merged
rdner merged 5 commits intoelastic:mainfrom Oct 10, 2025
Merged
fix(libbeat): Prevent panic in replace processor for non-string values#47009rdner merged 5 commits intoelastic:mainfrom
rdner merged 5 commits intoelastic:mainfrom
Conversation
The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes elastic#42308
Contributor
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
AndersonQ
approved these changes
Oct 10, 2025
Member
|
I left just a suggestion, feel free to take it or not. |
khushijain21
approved these changes
Oct 10, 2025
Co-authored-by: Anderson Queiroz <me@andersonq.me>
rdner
approved these changes
Oct 10, 2025
Member
|
This documentation change broke the CI checks, I'm currently figuring this out. |
Contributor
|
@Mergifyio backport 8.18 8.19 9.0 9.1 9.2 |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 98d1d48)
mergify bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 98d1d48)
mergify bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 98d1d48)
This was referenced Oct 10, 2025
mergify bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 98d1d48)
mergify bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> (cherry picked from commit 98d1d48)
pierrehilbert
pushed a commit
that referenced
this pull request
Oct 13, 2025
#47009) (#47032) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- (cherry picked from commit 98d1d48) Co-authored-by: Orestis Floros <orestis.floros@elastic.co> Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co>
pierrehilbert
pushed a commit
that referenced
this pull request
Oct 13, 2025
#47009) (#47031) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- (cherry picked from commit 98d1d48) Co-authored-by: Orestis Floros <orestis.floros@elastic.co> Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co>
pierrehilbert
pushed a commit
that referenced
this pull request
Oct 13, 2025
#47009) (#47030) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- (cherry picked from commit 98d1d48) Co-authored-by: Orestis Floros <orestis.floros@elastic.co> Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co>
pierrehilbert
pushed a commit
that referenced
this pull request
Oct 13, 2025
#47009) (#47028) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- (cherry picked from commit 98d1d48) Co-authored-by: Orestis Floros <orestis.floros@elastic.co> Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co>
orestisfl
added a commit
that referenced
this pull request
Oct 13, 2025
#47009) (#47029) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes #42308 --------- (cherry picked from commit 98d1d48) Co-authored-by: Orestis Floros <orestis.floros@elastic.co> Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co> Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co>
andrzej-stencel
pushed a commit
to andrzej-stencel/beats
that referenced
this pull request
Dec 1, 2025
elastic#47009) The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float). This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types. Closes elastic#42308 --------- Co-authored-by: Anderson Queiroz <me@andersonq.me> Co-authored-by: Denis <denis.rechkunov@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
The replace processor would panic with an interface conversion error if it attempted to process a field that contained a non-string value (e.g., nil, integer, float).
This commit adds a type check to safely validate that the field's value is a string before attempting the replacement operation. If the value is not a string, the processor will now return an error instead of panicking, making the processor more robust against malformed or unexpected data types.
Closes #42308
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
How to test this PR locally
Before:
{"log.level":"info","@timestamp":"2025-10-09T20:12:16.302+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.NewMetricsRegistry","file.name":"inputmon/input.go","file.line":182},"message":"registering","service.name":"filebeat","id":"448BD05089734E53","registry_id":"448BD05089734E53","input_id":"448BD05089734E53","input_type":"cel","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:12:16.302+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.NewMetricsRegistry","file.name":"inputmon/input.go","file.line":182},"message":"registering","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","registry_id":"448BD05089734E53::NOT_USED","input_id":"448BD05089734E53::NOT_USED","input_type":"cel","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:12:16.303+0200","log.logger":"input.cel","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run.func1","file.name":"cel/input.go","file.line":241},"message":"process periodic request","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","input_url":"NOT_USED","ecs.version":"1.6.0"} {"log.level":"error","@timestamp":"2025-10-09T20:12:16.303+0200","log.logger":"input.cel","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).runSource.func1","file.name":"input-cursor/input.go","file.line":173},"message":"Input crashed with: input panic with: interface conversion: interface {} is nil, not string\ngoroutine 106 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x5e\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).runSource.func1()\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:172 +0x58\npanic({0x607a9fe183a0?, 0xc000c7f140?})\n\truntime/panic.go:783 +0x132\ngithub.com/elastic/beats/v7/libbeat/processors/actions.(*replaceString).replaceField(0xc000c11260, {0xc00099a1e0, 0x18}, 0xc00084d180, {0x607a9f5828e0, 0x1}, 0xc000c925c0)\n\tgithub.com/elastic/beats/v7/libbeat/processors/actions/replace.go:118 +0x26b\ngithub.com/elastic/beats/v7/libbeat/processors/actions.(*replaceString).Run(0xc000c11260, 0xc000c925c0)\n\tgithub.com/elastic/beats/v7/libbeat/processors/actions/replace.go:92 +0xb7\ngithub.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Run(0xc000c11350, 0xc000c925c0?)\n\tgithub.com/elastic/beats/v7/libbeat/publisher/processing/processors.go:127 +0x82\ngithub.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Run(0xc000c11320, 0xc001105f01?)\n\tgithub.com/elastic/beats/v7/libbeat/publisher/processing/processors.go:127 +0x82\ngithub.com/elastic/beats/v7/libbeat/publisher/pipeline.(*client).publish(0xc000425ab0, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/libbeat/publisher/pipeline/client.go:93 +0x11a\ngithub.com/elastic/beats/v7/libbeat/publisher/pipeline.(*client).Publish(0x607a9e661ec7?, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/libbeat/publisher/pipeline/client.go:73 +0xfa\ngithub.com/elastic/beats/v7/filebeat/beater.(*countingClient).Publish(0xc000bdb4b8, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/filebeat/beater/channels.go:133 +0xa7\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*cursorPublisher).forward(0xc000c113e0, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/publish.go:81 +0x75\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*cursorPublisher).Publish(0x607a9eb28aa8?, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0}, {0x0, ...})\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/publish.go:68 +0x109\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run.func1()\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:514 +0x1ead\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.periodically({0x607aa093f508, 0xc000c00460}, 0xdf8475800, 0xc000c57658)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:580 +0x2e\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run({_}, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:240 +0xa0b\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.Run({_}, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:122 +0x132\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).runSource(_, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:196 +0x479\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).Run.func1()\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:151 +0x2f2\ngithub.com/elastic/go-concert/unison.(*MultiErrGroup).Go.func1()\n\tgithub.com/elastic/go-concert@v0.3.0/unison/multierrgroup.go:42 +0x66\ncreated by github.com/elastic/go-concert/unison.(*MultiErrGroup).Go in goroutine 104\n\tgithub.com/elastic/go-concert@v0.3.0/unison/multierrgroup.go:40 +0x76\n","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:12:16.303+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.CancelMetricsRegistry","file.name":"inputmon/input.go","file.line":198},"message":"unregistering","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","registry_id":"448BD05089734E53::NOT_USED","input_id":"448BD05089734E53::NOT_USED","input_type":"cel","ecs.version":"1.6.0"} {"log.level":"error","@timestamp":"2025-10-09T20:12:16.303+0200","log.logger":"input.cel","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/compat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":164},"message":"Input 'cel' failed with: input 448BD05089734E53 failed: input panic with: interface conversion: interface {} is nil, not string\ngoroutine 106 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x5e\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).runSource.func1()\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:172 +0x58\npanic({0x607a9fe183a0?, 0xc000c7f140?})\n\truntime/panic.go:783 +0x132\ngithub.com/elastic/beats/v7/libbeat/processors/actions.(*replaceString).replaceField(0xc000c11260, {0xc00099a1e0, 0x18}, 0xc00084d180, {0x607a9f5828e0, 0x1}, 0xc000c925c0)\n\tgithub.com/elastic/beats/v7/libbeat/processors/actions/replace.go:118 +0x26b\ngithub.com/elastic/beats/v7/libbeat/processors/actions.(*replaceString).Run(0xc000c11260, 0xc000c925c0)\n\tgithub.com/elastic/beats/v7/libbeat/processors/actions/replace.go:92 +0xb7\ngithub.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Run(0xc000c11350, 0xc000c925c0?)\n\tgithub.com/elastic/beats/v7/libbeat/publisher/processing/processors.go:127 +0x82\ngithub.com/elastic/beats/v7/libbeat/publisher/processing.(*group).Run(0xc000c11320, 0xc001105f01?)\n\tgithub.com/elastic/beats/v7/libbeat/publisher/processing/processors.go:127 +0x82\ngithub.com/elastic/beats/v7/libbeat/publisher/pipeline.(*client).publish(0xc000425ab0, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/libbeat/publisher/pipeline/client.go:93 +0x11a\ngithub.com/elastic/beats/v7/libbeat/publisher/pipeline.(*client).Publish(0x607a9e661ec7?, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/libbeat/publisher/pipeline/client.go:73 +0xfa\ngithub.com/elastic/beats/v7/filebeat/beater.(*countingClient).Publish(0xc000bdb4b8, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/filebeat/beater/channels.go:133 +0xa7\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*cursorPublisher).forward(0xc000c113e0, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0})\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/publish.go:81 +0x75\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*cursorPublisher).Publish(0x607a9eb28aa8?, {{0xc2321ca01217e269, 0x2474b34, 0x607aa457b340}, 0x0, 0xc000c7ede0, {0x0, 0x0}, 0x0}, {0x0, ...})\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/publish.go:68 +0x109\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run.func1()\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:514 +0x1ead\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.periodically({0x607aa093f508, 0xc000c00460}, 0xdf8475800, 0xc000c57658)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:580 +0x2e\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run({_}, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:240 +0xa0b\ngithub.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.Run({_}, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/x-pack/filebeat/input/cel/input.go:122 +0x132\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).runSource(_, {0xc000bdb380, {0xc000735120, 0x1a}, {0xc001105850, 0x10}, {0x607a9eb246cb, 0x3}, {{0x607a9eb2e48b, 0x8}, ...}, ...}, ...)\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:196 +0x479\ngithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor.(*managedInput).Run.func1()\n\tgithub.com/elastic/beats/v7/filebeat/input/v2/input-cursor/input.go:151 +0x2f2\ngithub.com/elastic/go-concert/unison.(*MultiErrGroup).Go.func1()\n\tgithub.com/elastic/go-concert@v0.3.0/unison/multierrgroup.go:42 +0x66\ncreated by github.com/elastic/go-concert/unison.(*MultiErrGroup).Go in goroutine 104\n\tgithub.com/elastic/go-concert@v0.3.0/unison/multierrgroup.go:40 +0x76\n","service.name":"filebeat","id":"448BD05089734E53","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:12:16.303+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.CancelMetricsRegistry","file.name":"inputmon/input.go","file.line":198},"message":"unregistering","service.name":"filebeat","id":"448BD05089734E53","registry_id":"448BD05089734E53","input_id":"448BD05089734E53","input_type":"cel","ecs.version":"1.6.0"}After:
{"log.level":"info","@timestamp":"2025-10-09T20:13:34.645+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.NewMetricsRegistry","file.name":"inputmon/input.go","file.line":182},"message":"registering","service.name":"filebeat","id":"448BD05089734E53","registry_id":"448BD05089734E53","input_id":"448BD05089734E53","input_type":"cel","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:13:34.645+0200","log.logger":"input.cel.metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.NewMetricsRegistry","file.name":"inputmon/input.go","file.line":182},"message":"registering","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","registry_id":"448BD05089734E53::NOT_USED","input_id":"448BD05089734E53::NOT_USED","input_type":"cel","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2025-10-09T20:13:34.646+0200","log.logger":"input.cel","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/filebeat/input/cel.input.run.func1","file.name":"cel/input.go","file.line":241},"message":"process periodic request","service.name":"filebeat","id":"448BD05089734E53","input_source":"NOT_USED","input_url":"NOT_USED","ecs.version":"1.6.0"} { "@timestamp": "2025-10-09T18:13:34.646Z", "@metadata": { "beat": "filebeat", "type": "_doc", "version": "9.3.0" }, "okta": { "profile": { "mobilePhone": null } }, "input": { "type": "cel" }, "error": { "message": "Failed to replace fields in processor: value for key: okta.profile.mobilePhone is not a string: <nil>" }, "ecs": { "version": "8.0.0" }, "host": { "name": "laptop" }, "agent": { "name": "laptop", "type": "filebeat", "version": "9.3.0", "ephemeral_id": "c555ca4d-f5fd-48b3-b576-8ec6c875c6a3", "id": "edc593f4-2c3c-4d6a-b2dc-c10b6a80fbf0" } } { "@timestamp": "2025-10-09T18:13:34.646Z", "@metadata": { "beat": "filebeat", "type": "_doc", "version": "9.3.0" }, "agent": { "ephemeral_id": "c555ca4d-f5fd-48b3-b576-8ec6c875c6a3", "id": "edc593f4-2c3c-4d6a-b2dc-c10b6a80fbf0", "name": "laptop", "type": "filebeat", "version": "9.3.0" }, "ecs": { "version": "8.0.0" }, "host": { "name": "laptop" }, "okta": { "profile": { "mobilePhone": "XXX-XXX-XXXXX" } }, "input": { "type": "cel" } } { "@timestamp": "2025-10-09T18:13:34.646Z", "@metadata": { "beat": "filebeat", "type": "_doc", "version": "9.3.0" }, "error": { "message": "Failed to replace fields in processor: value for key: okta.profile.mobilePhone is not a string: 5.5555555555e+10" }, "ecs": { "version": "8.0.0" }, "host": { "name": "laptop" }, "agent": { "ephemeral_id": "c555ca4d-f5fd-48b3-b576-8ec6c875c6a3", "id": "edc593f4-2c3c-4d6a-b2dc-c10b6a80fbf0", "name": "laptop", "type": "filebeat", "version": "9.3.0" }, "okta": { "profile": { "mobilePhone": 5.5555555555e+10 } }, "input": { "type": "cel" } }Related issues