Mikrotik Log

Hi i want to know mikrotik can save log for ip address on own device?
mean i want to know for example today my ip connect to which ip with which protocol and how many trafik recived on that connection

is that possible?

Yes it is possible.
As i understand you want to save connections log to disk file inside your mikrotik device. This is not that much recommended scenario because it may use a lot of memory and processing depending on how many connections there are. there are some limits for the created file like number of lines. Usually this logs are sent to an other server and not saved on the same mikrotik device.

But a simple setup would be like this:

1 Setup a logging action
maximum lines of log file will be 9999
only one file will be created
if file is full will stop

/system logging action  add name=tofile target=disk disk-lines-per-file=9999 disk-file-name=mylogfile disk-file-count=1 disk-stop-on-full=yes
  1. Log firewall topics to action we created
/system logging add topics=firewall action=tofile
  1. Setup firewall filer rules to log new tcp and udp connections. In src-address the network or ip’s we want to monitor
/ip firewall filter add chain=forward src-address=192.168.88.0/24 protocol=tcp connection-state=new action=log
/ip firewall filter add chain=forward src-address=192.168.88.0/24 protocol=udp connection-state=new action=log

Hi thanks for your help i do this and i see it work on my log system but where can i download log file? i didnt see log file in my mikrotik files

file should be created automatically under mikrotik files and you shouldn’t see it work on system log. probably log action has not been created successfully and and you are logging to memory instead.
see if logging action have been created by print command

/system logging action print

and if logging rule action match with the name of the action you created

/system logging print

Untitled-1.png

so how can i see the file ?
Capture.PNG

/file print

or if u use winbox go to files use drag and drop file to desktop

this is my problem file does’t exist
files.PNG

i done same configuration on a mt device to test and the file showed just immediately. idk what you are missing exactly. try a

/system logging print

also and post it here again please.
Untitled-1.jpg

here you can see
file.PNG