Community discussions

MikroTik App
 
bmatic
just joined
Topic Author
Posts: 20
Joined: Fri Oct 21, 2016 8:40 am

Feature request: tool/fetch new property - no-log

Mon Jun 05, 2017 10:01 am

I did my own ddns no-ip script, which does http fetch of an html file with my public ip address, and I noticed that fetch tool logs every download, so my log is cluttured with unnecessary fetch logs.
So my feature request is that fetch tool have additional property, like for example: no-log.
 
emkac
just joined
Posts: 1
Joined: Sun Oct 22, 2017 12:59 pm

Re: Feature request: tool/fetch new property - no-log

Sun Oct 22, 2017 1:08 pm

I have the same issue.
Script for no-ip updating is working fine, but this command always create log entry.
/tool fetch mode=http address="checkip.dyndns.org" src-path="/" dst-path="/dyndns.checkip.html"
log_file_fetch.png
Is there any possibility how to disable logging for "fetch"?

OS version:6.39.2
You do not have the required permissions to view the files attached to this post.
 
Boardy
just joined
Posts: 5
Joined: Sun Apr 01, 2018 11:01 am

Re: Feature request: tool/fetch new property - no-log

Sat Apr 07, 2018 1:10 pm

same for me, please add verbose flag...
 
ivanfm
newbie
Posts: 48
Joined: Sun May 20, 2012 5:07 pm

Re: Feature request: tool/fetch new property - no-log

Tue Apr 10, 2018 5:18 pm

will be nice an option to log only on error.

no messages when got and 200 response, but log for connection error or different status code.
 
bakadave
newbie
Posts: 26
Joined: Fri Jul 01, 2016 11:06 pm
Location: Hungary

Re: Feature request: tool/fetch new property - no-log

Tue May 08, 2018 9:55 am

seconded!

and logging event in case of error only would be even better
 
JAza
newbie
Posts: 34
Joined: Sun Jun 10, 2012 1:07 am

Re: Feature request: tool/fetch new property - no-log

Thu Aug 16, 2018 10:09 pm

+1.

My script needs to /tool fetch a url as an https 'get' for update the ddns service.
There is no actual file but the fetch creates a 2 byte file in the name of the url query. The file is named "?=xxx" where xxx is a mixed random string (the update token).

This file is difficult to deal with due to the '?' in the name and sometimes my script fails to delete it (mystery...).
Since I can't rename it and I can't download to my windows box a file with a ? in the name I have no idea what the 2 bytes in it are but I know I would rather be able to not create teh file in first place as I never parse it or use it so it's completely unnecessary clutter and it clutters my logs on every run.
 
eliasbats
just joined
Posts: 12
Joined: Thu May 11, 2017 6:22 pm

Re: Feature request: tool/fetch new property - no-log

Thu Dec 19, 2019 10:53 pm

+1
nice request
 
gotsprings
Forum Guru
Forum Guru
Posts: 2087
Joined: Mon May 14, 2012 9:30 pm

Re: Feature request: tool/fetch new property - no-log

Sat Dec 21, 2019 4:30 pm

I got around this by using resolve.

I resolve my public IP address. And make that a local variable. Then I compare that variable to what I pick off IP cloud or route pref-source.

This cuts down on sending unnecessary traffic to my name server provider. And NOTHING GETS WRITTEN TO MY LOG UNTIL... I send an update to the name server.

If you provide a copy of your script...
Maybe I could show you where to plug in local variables. but here are my pieces... YOU WILL NEED TO ADD THE WORD "WAN" to your public facing interface.
i.e. ether1-WAN

Pick IP From Route
:global Stat [/ip route get [find gateway=ether1-WAN] pref-src]

Pick IP from Address
:global OnEtherSub [/ip address get [find interface~"WAN"] address]
:global OnEther [:pick $OnEtherSub 0 [:find $OnEtherSub "/"]]

Pick IP from DHCP-Client
:global OnEtherSub [/ip dhcp-client get [find interface~"WAN"] address]
:global OnEther [:pick $OnEtherSub 0 [:find $OnEtherSub "/"]]

Get Public IP from IP Cloud
:global ipCloud [/ip cloud get public-address]
Resolve your current DNS name
:global RESOLVED [:resolve something.whatever.com]

Once you have those 2 things...
Compare them.

If not = then run the part of the script that sends the update to your service.

Then you will only have a log entry when they need and do updates.

(Figured this out a few years back and have been using it since.)
 
jgraue
just joined
Posts: 5
Joined: Wed Jun 03, 2015 3:34 am

Re: Feature request: tool/fetch new property - no-log

Fri Feb 21, 2020 5:26 am

+1
nice request
+1 for the request. im also getting log messages on each POST.
 
dke
newbie
Posts: 47
Joined: Tue Dec 10, 2019 11:30 pm
Location: Austria

Re: Feature request: tool/fetch new property - no-log

Sun Jun 28, 2020 1:09 am

+1 for the request
 
robo9
just joined
Posts: 6
Joined: Sat Jan 07, 2017 1:10 pm

Re: Feature request: tool/fetch new property - no-log

Fri Jul 17, 2020 3:26 pm

I can't wait for this feature.
It should be easy to implement.
Fetch is used in multiple ways and should not overload logs.
 
changeip
Forum Guru
Forum Guru
Posts: 3829
Joined: Fri May 28, 2004 5:22 pm

Re: Feature request: tool/fetch new property - no-log

Sat Jul 18, 2020 12:17 am

im not seeing fetch hit the logs on my scripts. whats the topics involved with the logging? maybe you have those enabled and so they are logging.
 
leonix
newbie
Posts: 28
Joined: Fri Nov 26, 2010 4:13 pm

Re: Feature request: tool/fetch new property - no-log

Fri Oct 23, 2020 11:43 am

+1
fetch should get a own log topic "fetch", so we can just disable it:
/system logging add topics=!fetch
Leo.
 
furaihan
just joined
Posts: 3
Joined: Wed Aug 26, 2020 6:06 am

Re: Feature request: tool/fetch new property - no-log

Sun Oct 25, 2020 7:20 am

+1 i need this
 
alemoia
just joined
Posts: 14
Joined: Sat Jan 04, 2020 12:59 am

Re: Feature request: tool/fetch new property - no-log

Wed Sep 01, 2021 8:27 pm

i really hope this can be implemented soon
 
gotsprings
Forum Guru
Forum Guru
Posts: 2087
Joined: Mon May 14, 2012 9:30 pm

Re: Feature request: tool/fetch new property - no-log

Thu Sep 02, 2021 5:05 am

I explained how to get around this 2 years ago.

Read the post and pick your fix.
 
howdey57
Member Candidate
Member Candidate
Posts: 122
Joined: Wed Dec 31, 2014 2:36 pm

Re: Feature request: tool/fetch new property - no-log

Fri Nov 11, 2022 5:21 pm

Please can you provide a link to your "no fetch log entry" post.

Thanks
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Feature request: tool/fetch new property - no-log

Fri Nov 11, 2022 6:49 pm

It's too hard scroll back???

or just turn off the logs, so there is no problem with the logs...

Who is online

Users browsing this forum: No registered users and 12 guests