Might be simpler to just use the match function to also syslog the specific events you want using a regex expression for the log name.
Add the match line under your syslog host stanza with one or more texts to match for forwarding logs.
syslog
host 1.1.1.1 {
any alert;
match "!(*keywords 1 middle* | keywords 2 exact | *keywords 3 ending ) ;
}
The * is a wild card for the match condition in the syslog message, just add it as needed to catch mulitple messages with a single term. Separate each keyword set with | if mulitple are needed.
https://kb.juniper.net/InfoCenter/index?page=content&id=KB22177