This article provides guidance on how to send the files generated by event-options to a remote destination
Event policies can archive system files, including system log files, core files, and configuration files, from the time an event occurs. Additionally, some event policy actions can generate output files and then archive the files. When an event policy executes an event script or executes commands, it can write the output to a file and then archive the file.
These files could be archived to a remote destination with the 'set event-options destinations' option by defining a remote destination with URLs:
[edit event-options]destinations { destination-name { archive-sites { url <password password> <routing-instance routing-instance-name>; } transfer-delay seconds; }}
Here are the related guides for reference:
https://www.juniper.net/documentation//us/en/software/junos/cli-reference/topics/ref/statement/destinations-edit-event-options.html
https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/topic-map/junos-script-automation-event-policy-file-archiving.html