Community discussions

MikroTik App
 
sjobbe
just joined
Topic Author
Posts: 20
Joined: Mon Jan 03, 2011 11:40 am

System Identity - two part name?

Thu Jun 15, 2017 11:01 am

When specifying a system identity with a singe word, for example: router, it does not show up in remote syslogs. But when I type an identity that contains one space, example: Firstname Lastname the "Lastname" shows up in the remote syslog.

Is this a feature or a bug?

Example 1 from syslog-ng: identity is set to "Uto Logi":
Jun 15 10:54:53 192.168.10.10 Logi [uto_logi]: defconf assigned 192.168.88.219 to B4:82:FE:E5:93:7B

Example 2 from syslog-ng: identity set to "Uto":
Jun 15 10:55:55 192.168.10.10 [uto_logi]: defconf assigned 192.168.88.219 to B4:82:FE:E5:93:7B
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: System Identity - two part name?

Thu Jun 15, 2017 11:06 am

Are you sure that is the problem of Mikrotik ? Just asking ... no offence. You are showing logs from syslog-ng and maybe it is problem of syslog-ng.
Have you checked non Mikrotik devices with two-word names ?
 
pe1chl
Forum Guru
Forum Guru
Posts: 10241
Joined: Mon Jun 08, 2015 12:09 pm

Re: System Identity - two part name?

Thu Jun 15, 2017 11:45 am

I use rsyslog and it works OK for me, both for single word and multi word names (all words are shown).
Did you use the BSD syslog option?
 
sjobbe
just joined
Topic Author
Posts: 20
Joined: Mon Jan 03, 2011 11:40 am

Re: System Identity - two part name?

Thu Jun 15, 2017 11:50 am

You are right that it might be also the syslog-ng cutting out the first part of the name/identity. I'm unable to debug that.

When unchecking BSD option the indentity is not shown at all on syslog.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10241
Joined: Mon Jun 08, 2015 12:09 pm

Re: System Identity - two part name?

Thu Jun 15, 2017 12:00 pm

Try it with rsyslog, e.g. a Raspberry Pi, to see if that works...
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: System Identity - two part name?

Fri Jun 16, 2017 7:54 pm

Works for me with Syslog-NG out of the box, I'm sending traffic via IPv6 with BSD-Syslog option. It looks like this in my NMS:
Forum_MikroTik_Syslog-Capturing-Hostname_1.png
You do not have the required permissions to view the files attached to this post.
 
sjobbe
just joined
Topic Author
Posts: 20
Joined: Mon Jan 03, 2011 11:40 am

Re: System Identity - two part name?

Fri Jun 16, 2017 11:31 pm

Changed to rsyslog and now it's working fine. Sorry and thank you :)

Who is online

Users browsing this forum: mkx and 181 guests