Skip to content

source: socket: Missing messages with log namespace on #23086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jiping-s opened this issue May 21, 2025 · 0 comments
Open

source: socket: Missing messages with log namespace on #23086

jiping-s opened this issue May 21, 2025 · 0 comments
Labels
domain: log_namespace Related to the global `log_namespace` config setting source: socket Anything `socket` source related type: bug A code related bug.

Comments

@jiping-s
Copy link

A note for the community

No response

Problem

Enable log namespace for a socket source, send any input, there is no message in output fields.

Example output:

{"all":{"socket":{"host":"127.0.0.1","port":64283},"vector":{"ingest_timestamp":"2025-05-21T07:18:00.667892Z","source_type":"socket"}}}

all is from %.

message is here if log namespace is off.

Configuration

---

data_dir: /tmp/vector

acknowledgements:
  enabled: true

sources:
  in_syslog_tcp:
    type: socket
    address: 0.0.0.0:5140
    mode: tcp
    keepalive:
      time_secs: 30
    framing:
      method: newline_delimited
    max_length: 65536
    shutdown_timeout_secs: 1
    log_namespace: true

transforms:
  tf_syslog:
    type: remap
    inputs: [in_syslog_tcp]
    source: |-
      .all = %

sinks:
  out_stdout:
    type: console
    inputs: [tf_syslog]
    encoding:
      codec: json
      timestamp_format: rfc3339

Version

0.46.1

Debug Output


Example Data

echo hello > /dev/tcp/127.0.0.1/5140

Additional Context

No response

References

No response

@jiping-s jiping-s added the type: bug A code related bug. label May 21, 2025
@pront pront added domain: log_namespace Related to the global `log_namespace` config setting source: socket Anything `socket` source related labels May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: log_namespace Related to the global `log_namespace` config setting source: socket Anything `socket` source related type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants