question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support disable logging console

See original GitHub issue

Enhancement summary

Support deactivating console logging on logging settings

Which component of AVD is impacted

eos_cli_config_gen

Use case example

Need to apply the following commands to a switch:

no logging console

However the logging datamodel does not support this. I am using eos_cli for now, but requesting support for this feature

Describe the solution you would like

Data model update, to look like the following (relevant change on the console settings):

logging:
  console: 
    enable: <true, false | default --> true>
    level:  < severity_level >
  monitor: < severity_level >
  buffered:
    size: < messages_nb (minimum of 10) >
    level: < severity_level >
  trap: < severity_level >
  synchronous:
    level: < severity_level | default --> critical >
  format:
    timestamp: < high-resolution | traditional >
    hostname: < fqdn | ipv4 >
    sequence_numbers: < true | false >
  source_interface: < source_interface_name >
  vrfs:
    < vrf_name >:
      source_interface: < source_interface_name >
      hosts:
        < syslog_server_1 >:
          protocol: < tcp | udp (default udp) >
          ports:
            - < custom_port_1 >
            - < custom_port_2 >
        < syslog_server_2 >:
          ports:
            - < custom_port_1 >
  policy:
    match:
      match_lists:
        < match_list >:
          action: < discard >

Describe alternatives you have considered

using eos_cli

Additional context

No response

Contributing Guide

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ccsnwcommented, Dec 14, 2021

Valid input under the level key are the syslog severity levels. “none” is not part of them and “disabled” also isn’t.

In order to avoid collision with the “None” keyword we should use “disabled” as Claus explained

0reactions
gusmbcommented, Dec 13, 2021

Alternative could be to look at the value of level, and if it is disabled then we disable with no logging xxx (Edited to avoid the “none” word)

Is logging none a valid eos input? If that’s the case, probably not ideal to masquerade it to sth different as there might be a case where someone wants logging none explicitly declared?

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging - how to stop console logging - Cisco Community
I have turned on logging. I set up a syslog server. But log messages stop me from doing anything on the console. How...
Read more >
How to quickly and conveniently disable all console.log ...
How to use the above 'logger'? In your ready event, call logger.disableLogger so that console messages are not logged. Add calls to logger....
Read more >
How to Disable Console Logging in Spring Boot - Baeldung
2. How to Disable the Console Output for Logback · logging.file=baeldung-disabled-console.log · logging.pattern.console= · logging.level.root=OFF
Read more >
How to disable logging to the local console on WiNG devices
Question. How to disable logging to the local console on WiNG devices ; Environment. WiNG ; Answer. It can be disable by using...
Read more >
How do I disable messages or logging from printing on the ...
Also, tell us about the syslog version, kernel version, release and sample messages that you get console for further help. Jamie Bainbridge's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found