napalm-logs icon indicating copy to clipboard operation
napalm-logs copied to clipboard

bad regex for iosxr basic parsing

Open Tristou27 opened this issue 4 years ago • 1 comments

For the IOSXR regex, the value of the 'timezone' is matched against 3 characters only. This does not take into account 'CEST' timezone for instance. Then the syslog is not matched at all and not parsed.

A possible modification could be in : napalm_logs/config/iosxr/init.yml

 timeZone: \s?(\w\w\w)?

... replaced by ...

 timeZone: \s?(\w{0,5}) # 0 to 5 to include: all possible timezones or no timezone

Would it be possible to change that?

Tristou27 avatar Apr 23 '21 15:04 Tristou27

Sure @Tristou27 if that fixes it for you, feel free to open a PR. Thanks & sorry for delay!

mirceaulinic avatar Jun 11 '21 12:06 mirceaulinic