title: Elastalert2 rules folder config not working
body: <p>I'm using Elastalert2 now to get notifications from error log in slack.</p>
  <p>We need to receive alarms of all service logs through our dozens of rules.</p>
  <p>Docker builds ElastAlert2 and deploy it on Argocd.</p>
  <p>But, there is a problem that the rules_folder config does not work</p>
  <p>There is rules_folder in config.yaml</p>
  <pre><code> rules_folder: /home/elastalert/rules
  </code></pre>
  <p>and this is Example Dockerfile</p>
  <pre><code>FROM python:3.9.13-slim
  
  # installation
  RUN pip3 install --upgrade pip \
    &amp;&amp; pip3 install cryptography elastalert2
  
  ENV LANG=&quot;en_US.UTF-8&quot;
  
  # add configuration and alarm
  RUN mkdir -p /home/elastalert
  WORKDIR /home/elastalert
  
  ADD ./config.yaml /home/elastalert
  COPY ./rules /home/elastalert/rules
  </code></pre>
  <p>and this is run command</p>
  <pre><code>    command: [ &quot;/bin/sh&quot;, &quot;-c&quot; ]
          args:
            - &gt;-
              echo &quot;Finda Elastalert is started!!&quot; &amp;&amp;
              elastalert-create-index &amp;&amp;
              elastalert --verbose --config config.yaml
              
              ...
  </code></pre>
  <p>but error occur like...
  [error][1]</p>
  <p>I think the rule files cannot be imported as args.
  In other words, it seems that rules_folder does not apply</p>
  <p>If, specify a specific rule file in the start command, it works well.
  For example,</p>
  <pre><code> elastalert --verbose --config config.yaml --rule ./rules/example/example.yaml
  </code></pre>
  <p>However, it can only execute one rule.</p>
  <p>We have dozens of rules.</p>
  <p>What's the problem?</p>