DennyF
11/26/2025, 9:10 AMUnrecognized character escape 'C' (code 67) and I have no idea .. which messages, because Graylog dropping them. So I need a way to get the exact output, which the Graylog gets. I tried TCPdump, but because the host gets so many messages, that I can't see, which one is the problematic one.DennyF
11/26/2025, 9:34 AMAnton Todorov
11/26/2025, 10:23 AMDennyF
11/26/2025, 11:24 AM#!/bin/bash
while [ true ];
do
nc -lp 12201 -w 0
echo -------------------
done
and then configure a 2nd GELF output with 127.0.0.1 address and start the script and restart fluent-bitDennyF
11/26/2025, 11:24 AMDennyF
11/26/2025, 12:03 PMDennyF
11/26/2025, 12:05 PMugins/iCheck/icheck.min.js\\\\\\\"></script><script src=\\\\\\\"<https://use.fontawesome.com/581d5d54d2.js>\\\\\\\"></script><script src=\\\\\\\"/c3650cdf-216a-4ba2-80b0-9d6c540b105e58d2670b-ea0f-484e-b88c-0e2c1499ec9bd71e4b42-8570-44e3-89b6-845326fa43b6\\\\\\\" type=\\\\\\\"text/javascript\\\\\\\"></script><script>!function(e){function r(r){for(var n,p,l=r[0],a=r[1],f=r[2],c=0,s=[];c<l.length;c++)p=l[c],Object.prototype.hasOwnProperty.call(o,p)&&o[p]&&s.push(o[p][0]),o[p]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var n={},o={1:0},u=[];function p(r){if(n[r])ret
and then I see the next messageDennyF
11/26/2025, 12:22 PMPat
11/26/2025, 2:26 PMPat
11/26/2025, 2:26 PMDennyF
11/27/2025, 8:11 AMservice:
# -----------------------------------------------------------
# Grundkonfiguration
# -----------------------------------------------------------
daemon: Off
log_level: error
http_server: On
http_listen: 0.0.0.0
http_port: 2020
# -----------------------------------------------------------
# Konfigurationsquellen
# -----------------------------------------------------------
parsers_file: parsers.conf
plugins_file: plugins.conf
hot_reload: On
# -----------------------------------------------------------
# Speicher und Stabilität
# -----------------------------------------------------------
storage.path: /var/log/flb-storage/
storage.sync: normal
storage.checksum: off
storage.max_chunks_up: 512
storage.backlog.mem_limit: 256M
# -----------------------------------------------------------
# Performance-Tuning
# -----------------------------------------------------------
flush: 1.0
grace: 5
coro_stack_size: 24576
workers: 4
...
#######################################################################
# INPUTS
#######################################################################
pipeline:
inputs:
- name: syslog
listen: 127.0.0.1
port: 5140
parser: syslog_rfc3339
tag: syslog
mode: udp
buffer_chunk_size: 32000
buffer_max_size: 64000
receive_buffer_size: 512000
- name: forward
port: 24224
tag: container
listen: 127.0.0.1
...
- name: gelf
match: ns.*
host: <http://fc-r01-graylog.inatec.com|fc-r01-graylog.inatec.com>
port: 12201
mode: tcp
tls: false
Gelf_Short_Message_Key: log
Gelf_Timestamp_Key: timestamp
Gelf_Host_Key: host
Gelf_Level_Key: level
I've added for debug:
- name: gelf
match: ns.*
host: 127.0.0.1
port: 12201
mode: tcp
tls: false
Gelf_Short_Message_Key: log
Gelf_Timestamp_Key: timestamp
Gelf_Host_Key: host
Gelf_Level_Key: level
and had my netcat listen on localhost:12201 and try to find the messages which have broken JSON or missing fields.Pat
11/27/2025, 10:00 AMPat
11/27/2025, 10:00 AMDennyF
11/27/2025, 10:29 AMPat
11/27/2025, 10:30 AMPat
11/27/2025, 10:30 AMPat
11/27/2025, 10:30 AMPat
11/27/2025, 10:30 AMPat
11/27/2025, 10:31 AMDennyF
11/27/2025, 10:33 AMPat
11/27/2025, 10:35 AMDennyF
11/27/2025, 10:35 AMDennyF
11/27/2025, 10:35 AMDennyF
11/27/2025, 10:35 AMDennyF
11/27/2025, 10:37 AMPat
11/27/2025, 10:39 AMDennyF
11/27/2025, 10:44 AMDennyF
11/27/2025, 10:59 AMDennyF
11/27/2025, 10:59 AMPat
11/27/2025, 11:10 AMoutputs:
- name: stdout
match: '*'
processors:
logs:
- name: grep
regex: XXX
https://docs.fluentbit.io/manual/data-pipeline/processors/filtersDennyF
11/27/2025, 11:11 AMPat
11/27/2025, 11:11 AMDennyF
11/27/2025, 11:12 AMtail -f debug.log | jq .. so if I have a broken json, jq will tell meDennyF
11/27/2025, 11:14 AM