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?
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...