Anbindung HP Procurve an Syslog-Server: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=On HP Procurve= <pre> *configure terminal *logging facility syslog *logging 10.82.0.120 </pre> =On Syslog-Server= ==Add Lines== *vi /etc/rsyslog.conf <pre>…“)
 
Zeile 1: Zeile 1:
 
=On HP Procurve=
 
=On HP Procurve=
<pre>
 
 
*configure terminal
 
*configure terminal
 
*logging facility syslog  
 
*logging facility syslog  
 
*logging 10.82.0.120
 
*logging 10.82.0.120
</pre>
 
  
 
=On Syslog-Server=
 
=On Syslog-Server=

Version vom 26. Februar 2018, 11:59 Uhr

On HP Procurve

  • configure terminal
  • logging facility syslog
  • logging 10.82.0.120

On Syslog-Server

Add Lines

  • vi /etc/rsyslog.conf
$template Incoming-logs,"/var/log/devices/%FROMHOST-IP%.log"
*.* @10.81.17.1:514

restart rsyslog

  • systemctl restart rsyslog.service

View Logs

  • tail -f /var/log/devices/10.81.17.1.log