cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1863
Views
0
Helpful
7
Replies

automatic generating syslogs logs

mragula01
Level 1
Level 1

hello all, i would like to ask you for advice. i would need to send from my devices each hour a syslog message (for example heartbeat_nameofdevice) each hour to Qradar. those devices are nexus 9K (9.3.9) and ASA firewall. i tried to configure it with event manager on nexus in this way

 

event manager applet heartbeat

action 1 syslog msg test_BEUWVVSSPRLESW009N93

 

but i am not able to set up timer in order to trigger this action each hour

 

thank you

 

Michal

7 Replies 7

Hello,

 

you can add a CRON timer (in the example below, the syslog message would be run one minute after each hour):

 

event manager applet heartbeat
--> event timer cron cron-entry "01 * * * *" maxrun 99999999
action 1 syslog msg test_BEUWVVSSPRLESW009N93

unfortunately event timer is not a option which is enabled on my nexus devices

 
 

(config-applet)# event ?
cli  - Create a cli event specification
counter -  Create a counter event
fanabsent -  Create fanabsent event specification
fanbad - Create fanbad event specification
fib -  FIB related event
gold  - Create a 'Diagnostic' event specification
internal-link-flap -  Create a 'internal-link-flap' event specification
memory - Create memory thresholds event specification
module - Create a 'module' event specification
module-failure -  Create a 'module-failure' event specification
neighbor-discovery - Show CDP new neighbors
oir - Create Online-Insertion-Removal event specification
policy-default -  Use the event in the system policy being overridden
poweroverbudget - Create poweroverbudget event specification
snmp - Create a 'snmp' event specification.
storm-control -  Create a storm control event specification
syslog - Create a syslog event specification
sysmgr - System manager related events
tag - Event tag identifier
temperature - Create temperature event specification
test - Create a 'test' event specification
track - Create a 'track' event specification

 

is there some other option ?

Hello,

 

check if you can use KRON instead:

 

event manager applet EVERYHOUR_APP
event none
action 1 syslog msg test_BEUWVVSSPRLESW009N93
!
kron policy-list EVERYHOUR_POL
cli event man run EVERYHOUR_APP
!
kron occurence EVERYHOUR_OCC in 60 recurring
policy-list EVERYHOUR_POL

hello Georg,

 

unfortunately even KRON is not enabled on our nexuses

 

 (config-applet)# kron ?
^
% Invalid command at '^' marker.
(config-applet)# exit

 

(config)# kron ?
^
% Invalid command at '^' marker.

maybe is there some other way how to automatically generate log on nexus and ASA each hour ?

 

 

Hello,

 

for the Nexus, try the below:

 

feature scheduler
!
scheduler job name SYSLOG_JOB
syslog msg test_BEUWVVSSPRLESW009N93
!
scheduler schedule name SCHED_HOURLY
job name SYSLOG_JOB
time hourly 00