Skip to content

Is it possible to create multiple rules in one yaml file #5808

Answered by ip-sf
amitgupta369 asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot. A yaml file is a single structured object document. --- denotes the content of the file implicitly and does not act as a break or similar sequence. Stackstorm depends on well known keys to load data, and supplying a second rule in the same document would cause a duplicate key error, were it to even parse, which I assume is what is causing your error.

1 rule 1 file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arm4b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants