Writing to log file (or appending to files)

I have RouterOS v.3.23 and I want to write some information to files (csv) and send them regularly to a certain email.

I tried the above but you know the file size limitation that prevents me from collecting many samples of data to be sent.

I thought about adding log entries but I am not sure if I can do that. I created an action associated with a file and a rule (using unused1) to use it. I’m not sure how to write a log entry that would match this rule. Is it even possible?

Assuming it’s not possible, would using APIs (like PHP APIs) help me in this regard?

API can be used to get data from router and construct CSV file.

Thanks. I started working on the API using PHP.
I might add a question about it later.

Hi,

Ive just made software using .net 4.0 that interrogates Mikrotiks on my network using ssh (which is then parsed). I’ve further added db support and emailing is very easy via .net. Still need to add sms though.

In my case I get the “/int wi reg pr advanced” data per CPE (every 2 mins). I’ve done this as I found the API doesnt give as much data as I’d prefer.

Perhaps using ssh via php or whatever your comfortable with could prove useful to you a well.

Thanks for the idea.

I only need to know the rate of a certain queue that I usually do by

/queue tree get SomeQueueName rate

With API, I am using “/queue/tree/getall”, but I’m not getting the “rate” back in the array returned.

My software allows for any terminal command to be entered and returned. Very awesome. I monitor ccq values , etc for wireless quality constraints.

I would highly recommend ssh. Another use I have found is simplified installer software (I also made). ie no winbox complexity,just the functions they need.

of interest, the lack of detail of api is why I turned to this as a solution.