Skrevet av Emne: Cisco: Enable logging to remote syslog server  (Lest 4261 ganger)

ATC

  • Gjest
Cisco: Enable logging to remote syslog server
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • I've entered 'logging #.#.#.#' into the config but nothing happens. (actual IP address hidden)



    ATC

    • Gjest
    [Solved] Cisco: Enable logging to remote syslog server
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • Logging to a remote syslog server requires several steps. First of all, make sure there are no firewall rules blocking UDP/514 between the router and the syslog server.

    Then remove the current logging setup:
    "no logging #.#.#.#"

    Finally, add the following:
    "logging #.#.#.#"
    "logging trap informational"
    "logging source-interface Ethernet 0"
    "logging facility local7"

    Substitute "informational" for the severity level
    Substitute "Ethernet 0" for the interface
    Substitute "local7" for the facility

    This had me puzzled for days, because IOS seems to need these config statements in a sequence.