I am new to script, but see the same as you.
It looks like I do not get any output when run from
cli, but it gets data within a script.
I am not sure this is a bug or it is supposed to work this way.
I also would like to see the output to screen from the
find command when run from
cli.
Edit: Did some testing. Look at these two test:
/ip firewall connection find
Gives nothing, but using put i do get:
:put [/ip firewall connection find]
*19c;*19d;*19e;*19f;*1a1;*1a3;*1a4;*1a5;*1a6;*1a7;*1a8;*1a9;*1aa;*1ac;*1ae;*1af;*1b0;*1b1;*1b2;*1b4;*1b5;*1b6;*1b7;*1b8;*1b9;*1ba;*1bb;*1bc;*1bd;*1bf;*1c0;*1c1;*1c2;*1c3;*1c4;*1c5;*1c6;*1c7;*1c8;*1c9;*1cb;*1cc;*1cd;*1ce;*1cf;*1d0;*1d1;*1d2;*1d3;*1d4;*1d5;*1d6;*1d7;*1d8;*1d9;*1da;*1db;*1dc;*1df;*1e0;*1e1;*1e2;*1e3;*1e4;*1e5;*1e6;*1e7;*1e8;*1e9;*1ea;*1eb
Then it seem to return line number in some format of what is found.
Edit2:
This seems to be the correct way, but still some strange.
/ip firewall connection print
Flags: E - expected, S - seen-reply, A - assured, C - confirmed, D - dying, F - fasttrack, s - srcnat, d - dstnat
# PR.. SRC-ADDRESS DST-ADDRESS TCP-STATE TIMEOUT ORIG-RATE REPL-RATE ORIG-PACKETS
0 SAC s tcp 10.10.10.92:52488 52.170.194.77:443 established 20h44m33s 0bps 0bps 114
1 SAC s tcp 10.10.10.43:60914 193.212.207.247:45046 established 4m59s 448bps 416bps 61 621
2 SAC d udp 10.10.10.132:41324 8.8.8.8:53 50s 0bps 0bps 2
But when I run
:put [/ip firewall connection get [find dst-address=8.8.8.8:53]]
no such item
Should be a hit, but nu such item.