How to properly activate zephyr logs with network syslog backend to work over LTE-M for nrf9160 custom device?
How to properly activate zephyr logs with network syslog backend to work over LTE-M for nrf9160 custom device?
Are you saying this is what you're seeing too? Where are you outputting this syslog exactly on your end?
Best regards,
Simon
I meant that the example project I showed you is compiling and I can see the logs in the shell terminal. However, I do not see logs of the Syslog type (RFC 5424) on the server specified in the configuration (169.46.82.174:25736). In the example, I use a server that is provided by service https://papertrailapp.com. However, in reality there should be a full-fledged Syslog server.
I understand. I will check if that is something that we have tested with our devices.
Best regards,
Michal
Have you checked with some tool on your computer that the syslog server is working properly by the way?
Best regards,
Michal
Have you checked with some tool on your computer that the syslog server is working properly by the way?
Best regards,
Michal
Hi.
Yes, I can send data to the server in different ways. For example by commands from WSL shell:
echo check from wsl ip at 2024.11.14 14:04 local time | nc -w0 -u 169.46.82.174 25736
Are you able to connect to the server otherwise from the nRF9160? For example ping it maybe?
Yes. If I download the Modem Shell (MoSh) example to my nRF9160-DK, I can ping from my operator's network and send data via a socket commands.
What happens if you add "tcp://" in your CONFIG_LOG_BACKEND_NET_SERVER?
This causes an error:
[00:00:00.629,364] <inf> net_syslog_lte: Starting application... [00:00:00.684,783] <inf> net_syslog_lte: LTE connected successfully [00:00:00.684,814] <inf> net_syslog_lte: Begin logging to syslog... [00:00:00.684,844] <err> log_backend_net: Cannot configure syslog server address
Normally it looks like:
[00:00:00.651,672] <inf> net_syslog_lte: Starting application... [00:00:00.707,061] <inf> net_syslog_lte: LTE connected successfully [00:00:00.707,092] <inf> net_syslog_lte: Begin logging to syslog... [00:00:00.707,183] <dbg> net_utils: parse_ipv4: (main): IPv4 host 169.46.82.174 port 25736
but my log server is still empty...