[tcp]: Line Delimiter input text field does not work for control characters like \r #10817
Labels
bug
Something isn't working, use only for issues
Integration:tcp
Custom TCP Logs
Team:Security-Deployment and Devices
Deployment and Devices Security team [elastic/sec-deployment-and-devices]
Integration Name
Custom TCP Logs [tcp]
Dataset Name
tcp.generic
Integration Version
1.19.1
Agent Version
8.15.0
Agent Output Type
elasticsearch
Elasticsearch Version
8.15.0
OS Version and Architecture
Linux
Software/API Version
No response
Error Message
From Filebeat log output:
{"log.level":"debug","@timestamp":"2024-08-07T20:12:49.340Z","message":"Client error","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"tcp-default","type":"tcp"},"log":{"source":"tcp-default"},"log.logger":"tcp","log.origin":{"file.line":202,"file.name":"streaming/listener.go","function":"github.com/elastic/beats/v7/filebeat/inputsource/common/streaming.(*Listener).handleConnection"},"remote_address":"127.0.0.1:57109", "error":{"message":"bufio.Scanner: token too long"},"ecs.version":"1.6.0","service.name":"filebeat","address":"localhost:2107","ecs.version":"1.6.0"}
This is an indicator that the delimiter is not working correctly and it is over running the bufio scanner.
Event Original
No response
What did you do?
Configured the "Line Delimiter" option with
\r
with the intention of using a carriage return as the delimiter.What did you see?
The package policy was generated with
"line_delimiter": "\\r",
which is not a carriage return, but instead a\
followed byr
(or 0x5c72).What did you expect to see?
I expected to see the package policy request generated with
"line_delimiter": "\r",
which would be 0x0d.Anything else?
The workaround is to use the custom configuration YAML option to specify the
line_delimiter
instead of using the "Line Delimiter" input text field.The text was updated successfully, but these errors were encountered: