Hi,
By issuing the command 'Logging <IP Address>' on the switch you can send the logs to the syslog server.
Options below:
HP-2620-48-PoEP(config)# logging ?
facility Specify the syslog facility value that will be used for all syslog servers.
filter Create a filter to restrict what events are logged.
IP-ADDR Add an IPv4 address to the list of receiving syslog servers.
IPV6-ADDR Add an IPv6 address to the list of receiving syslog servers.
notify Notification of the specified type will be sent to the syslog server(s).
origin-id Specify the origin information for the syslog message.
priority-descr A text string associated with the values of facility, severity, and system-module.
severity Event messages of the specified severity or higher will be sent to the syslog server.
system-module Event messages of the specified system module (subsystem) will be sent to the syslog server.
HP-2620-48-PoEP(config)# logging