A.I Syntax Errors

Hi,

Ive been using the AI to generate some really useful configuratioins however i seem to have one problem repeating itself continously in various scripts as per attached screenshot. No matter how many times i point out the problem it comes back saying yes it sees it and then suggests a change before putting the exact same code in place.

Could anyone assist me to uinderstand what the syntax error is and the possible change for it to be accepted in my configuration?
Screenshot 2025-05-22 052426.png

Don’t trust the LLMs with things related to RouterOS. There are not enough training data for them to be accurate (especially when compared to JS, Python, C++, … and well-known frameworks/platforms).

Instead of blindly relying on AIs and waiting for them to spoon-feed you, read the docs, or in this case, just do some common digging and exploring:


  • You can use the TAB or F1 key to see what parameters/parameter values are possible at any given moment on the command line


  • Seeing action=disk and a /system/logging/action submenu listing possible actions, you can infer that you can create customized actions!


  • WinBox is a very good tool for exploring the capabilities of RouterOS, because almost everything available on the command line is presented in the UI, you can just open System → Logging and see what attributes are settable for logging topics, and that Actions are user-definable.


  • For things created/edited with WinBox, you can go to the terminal and use the export command (in this case /system/logging/export) to see how they are translated to command-line form.

Don’t let the AIs make your brain numb!
logging-tab.png
logging-ui.png

Thanks for saving my time. I won’t waste my time on AI.