This message was deleted.
# support
s
This message was deleted.
n
You will need to check if “2255” is exposed on the server where you are running the collector.
Also check the logs of “logspout” it will give some more idea about what is hapenning
p
@nitya-signoz 2255 port is exposed, and the logspout logs are not saying much
Copy code
docker logs bc2f02eb9c38
2024/01/08 12:29:45 # logspout v3.2.14 by gliderlabs
2024/01/08 12:29:45 # adapters: multiline raw syslog tcp tls udp
2024/01/08 12:29:45 # options : 
2024/01/08 12:29:45 persist:/mnt/routes
2024/01/08 12:29:45 # jobs    : http[health,logs,routes]:80 pump routes
2024/01/08 12:29:45 # routes  :
#   ADAPTER     ADDRESS                 CONTAINERS      SOURCES OPTIONS
#   raw+udp     <my-ip>:2255                              map[]
and the logs of otel-collector is also giving success msg. I don't understand, where I'm going wrong and why the logs are not showing in the UI
I've tried
syslog+tcp
adapter also, it's giving error - "bad adapter" that's why I used
raw+udp
here
n
p
sorry i'm asking so many questions, but i'm trying this since yesterday still i'm not getting the logs even with tcp. what do I missing?
n
what are you trying to convey with the last screenshot? Did you try the search filter ?
p
Yes I did
Copy code
2024-01-09T07:59:30.077Z        error   filter/filter.go:88     Running expressing returned an error%!(EXTRA zapcore.Field={error 26 0  interface conversion: interface {} is nil, not string (1:27)
2024-01-09T08:00:10.780Z        error   helper/transformer.go:98        Failed to process entry {"kind": "receiver", "name": "tcplog/docker", "data_type": "logs", "operator_id": "regex_parser", "operator_type": "regex_parser", "error": "regex pattern does not match", "action": "send", "entry": {"observed_timestamp":"2024-01-09T08:00:10.780663911Z","timestamp":"0001-01-01T00:00:00Z","body":"2024-01-09T13:30:10+05:30 [MONITOR] WARN: Monitor #18 'VoiceBase': Failing: Request failed with status code 404 | Interval: 60 seconds | Type: http | Down Count: 1 | Resend Interval: 15","severity":0,"scope_name":""}}
2024-01-09T08:00:10.781Z        error   filter/filter.go:88     Running expressing returned an error%!(EXTRA zapcore.Field={error 26 0  interface conversion: interface {} is nil, not string (1:27)
I'm getting this error -
Copy code
Running expressing returned an error%!(EXTRA zapcore.Field={error 26 0  interface conversion: interface {} is nil, not string (1:27)
2024-01-09T08:00:10.780Z        error   helper/transformer.go:98        Failed to process entry {"kind": "receiver", "name": "tcplog/docker", "data_type": "logs", "operator_id": "regex_parser", "operator_type": "regex_parser", "error": "regex pattern does not match", "action": "send", "entry":
I searched for documentation but didn't find any for this particular error. Is there anything related to this problem so that I can follow?
n
https://signoz-community.slack.com/archives/C01HWQ1R0BC/p1704808489658679?thread_ts=1704630460.766799&amp;cid=C01HWQ1R0BC the parser for parsing is failing i.e data is not in the format as expected. https://github.com/SigNoz/signoz/blob/92717774a281720f2beabbd9da7abad29114f622/deploy/docker/clickhouse-setup/otel-collector-config.yaml#L5 This won’t drop the data, but the attributes like
container_name
won’t be parsed and you will have to use fulltext search
p
Thanks! It worked!
Hi everyone, I've successfully configured the (docker) logs part in the dashboard by running this command alone in the application's server side -
Copy code
docker run --net=host --rm --name="logspout" --volume=/var/run/docker.sock:/var/run/docker.sock gliderlabs/logspout  syslog+tcp://<host>:2255
I checked the documentation for getting
metrics
in dashboard, but it's only with
signoz
setup, what to implement on application's server? I also checked the
instrument the application
doc, there also, it's installing
otel sdk
and then creating
tracing.js
for tracing, nothing with metrics. Please anyone guide, what I am missing out. Any doc would be a great help. Thanks In Advance!