log torch output

Hi all! i need to log to text file or better to a syslog server all the connections done by all the pcs on the lan.
I tried to search in router os but i didn’t find anything. Do i need a script? Does anyone of you done this before?
Thank you.

/ip firewall mangle
add action=log chain=forward disabled=no

/system logging
add action=remote disabled=yes prefix="" topics=firewall,info

In ‘System/Logging/Actions’ set ‘remote’ parameters to your syslog server.

HTH,

thank you! I’ll try!

that’s good! now if it’s possible i have to remove from logs some unnecessary fields, because i have to give this output to the customer

you will have to do this on the remote syslog server