From d266c6e39fe6eb8c757b6fdc13e6c3a1690d2f5e Mon Sep 17 00:00:00 2001 From: Anthony Iheoma Date: Fri, 9 Jun 2023 20:04:36 +0200 Subject: [PATCH] Fix config to correctly handle dynamic PPID and path The previous eos process_started config had hardcoded values for PPID and the executable path. --- napalm_logs/config/eos/PROCESS_STARTED.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/napalm_logs/config/eos/PROCESS_STARTED.yml b/napalm_logs/config/eos/PROCESS_STARTED.yml index b04a45fe..48c49223 100644 --- a/napalm_logs/config/eos/PROCESS_STARTED.yml +++ b/napalm_logs/config/eos/PROCESS_STARTED.yml @@ -7,7 +7,9 @@ messages: values: agent: ([\w-]+) pid|int: (\d+) - line: ": '{agent}' starting with PID={pid} (PPID=2030) -- execing '/usr/bin/Bgp'" + ppid|int: (\d+) + path: ([\w\:\-\/]+) + line: ": '{agent}' starting with PID={pid} (PPID={ppid}) -- execing '{path}'" model: NO_MODEL mapping: variables: