Community discussions

MikroTik App
 
freemannnn
Forum Veteran
Forum Veteran
Topic Author
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

system logging critical sent email with router identity

Sat May 05, 2018 11:11 am

is it possible when mikrotik sent me email about critical events to include from which mikrotik identity is coming from?
i want this because i want to set one unique gmail to tools/email to all my customers. but when a mail is coming you cannot recognise which customer router it is.
it would be a nice feature and i wont have to make one gmail address per customer.

message should be something like this.... system,error,critical login failure for user admin from MY_MIKROTIK via ftp.
You do not have the required permissions to view the files attached to this post.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: system logging critical sent email with router identity

Sat May 05, 2018 11:43 am

You could set the e-mail address to your_email_address+MY_MIKROTIK@gmail.com in each router (varying the MY_MIKROTIK for each router).
Then all mail will arrive in the same mailbox but you can still recognize it. Remember everything after the + is disregarded in e-mail addresses, and
can be seen as a comment but still be used in filtering on the mailbox (e.g. you could move every mail to a folder for that customer).
 
freemannnn
Forum Veteran
Forum Veteran
Topic Author
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: system logging critical sent email with router identity

Sat May 05, 2018 11:55 am

very good idea that i didnt think of, but it does not work.
the email i got in my inbox is from "mymikrotik@gmail.com" and not from "mymikrotik+AWS@gmail.com" that i have specify at sent to. do i have to you filters?
 
freemannnn
Forum Veteran
Forum Veteran
Topic Author
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: system logging critical sent email with router identity

Sat May 05, 2018 12:09 pm

yes with filter is working but again you have to make so many filters.
is just simplier if mikrotik place "SYSTEM IDENTITY" at email that router sent.
i sent email to support@mikrotik.com
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: system logging critical sent email with router identity

Sat May 05, 2018 12:18 pm

You could also send all logs to Sylog server like Splunk.
Then you can make an alert that send some logs to your email with the IP of the router it coming from.
Only minus with Splunk that Alert does not work with the free version of Splunk.
 
freemannnn
Forum Veteran
Forum Veteran
Topic Author
Posts: 700
Joined: Sun Oct 13, 2013 7:29 pm

Re: system logging critical sent email with router identity

Sat May 05, 2018 12:27 pm

you cant see that info direct in gmail inbox . you have to open email and see the header details of the message. there you can see the specific sender. so this ok than nothing.
thank you pe1chl.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: BoraHorza, Google [Bot], shahzaddj1 and 207 guests