Hello team.
I am looking for guidance on the following matter.
The scenario:
I was asked to mount a solution to receive/show SYSLOG messages coming from Cisco devices.
Since I already have Grafana, I installed a Loki docker, and then I mounted a “syslog-ng” docker to receive the logs on port 514 and forward them to promtail´s docker on port 1514 (AFAIK promtail does not hear messages on UDP 514).
The problem:
I configured a Cisco router to include a string representing its hostname when logs are sent. The following is a sample of the message captured with my sniffer. “RO-AR-PL-PUA-001” is the string I configured in the router to be sent along the log message (command: logging origin-id string RO-AR-PL-PUA-001)
340: RO-AR-PL-PUA-001: 000336: *Dec 14 08:57:03.629: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 10.235.254.3 port 514 stopped - CLI initiated
When I ask Grafana to show me the log, the aforementioned message is trimmed. I see the following:
000336: *Dec 14 08:57:03.629: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 10.235.254.3 port 514 stopped - CLI initiated
I do not know which of my “syslog dockers” (syslog-ng or promtail) is getting rid of the first piece of the log message. I need it to work with this information for the purpose of a label associated to the name of the device.
¿ How could I start debugging the problem?
Any hints will be greatly appreciated
Best regards,
Rogelio