Community discussions

MikroTik App
 
alger
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Tue Dec 19, 2006 12:35 pm
Location: Russia
Contact:

logging to remote host is not work

Tue Sep 18, 2018 5:17 pm

Logging to a remote host does not work.
Tested on different syslog servers. From Cisco everything comes, from Mikrotik no.
What is wrong ?
/system logging action add name=syslog remote=10.10.22.2 target=remote
/system logging add action=syslog topics=info,critical,warning,error
Packets not send to 514 port
firewall.PNG
You do not have the required permissions to view the files attached to this post.
 
alger
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Tue Dec 19, 2006 12:35 pm
Location: Russia
Contact:

Re: logging to remote host is not work

Wed Sep 19, 2018 9:25 am

This is bug or feature ?

Not work
/system logging 
add action=syslog topics=info,critical,warning,error


Work
/system logging
add action=syslog topics=critical
add action=syslog topics=warning
add action=syslog topics=error
 
pe1chl
Forum Guru
Forum Guru
Posts: 10234
Joined: Mon Jun 08, 2015 12:09 pm

Re: logging to remote host is not work  [SOLVED]

Wed Sep 19, 2018 10:02 am

It is a feature. When you specify multiple keywords on a single logging action, it only matches entries with ALL those keywords (AND function).
This is obviously not possible with info,critical,warning,error because always only one of those keywords appears in a log entry.
But you could use something like add action=syslog topics=info,l2tp
To log all loglevels as you want you need multiple action lines.
 
alger
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 80
Joined: Tue Dec 19, 2006 12:35 pm
Location: Russia
Contact:

Re: logging to remote host is not work

Thu Sep 20, 2018 10:34 am

It is a feature. When you specify multiple keywords on a single logging action, it only matches entries with ALL those keywords (AND function).
Thanks, didn't know.

Who is online

Users browsing this forum: aivik, Kuwait and 118 guests