find behaves in wierd ways if you pass it something like `domain="$domain"`

Without telling what you try to do, its hard to help.

To get anything correct out of RouterOS, you need to work with the id of an object.
Here is an example of getting some DHCP network information. (cut/past to terminal)

{

/ip dhcp-server network
:foreach id in=[find] do={
	:put "id=$id domain=$[get $id domain] address=$[get $id address] gateway=$[get $id gateway]"
}
}

Use Splunk> to log/monitor your MikroTik Router(s).–> MikroTik->Splunk :mrgreen:
Backup config to GmailBackup
Block users that tries ut use non open ports → Block