Skip to content

Rule filter seems to be picking up on query_string values, not term values #1529

Answered by roman-tasi
roman-tasi asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be the fix (it doesn't give the ability to restrict by the specific field but for my use-case it doesn't matter):

filter:
- query:
   query_string:
     query: "\"cmd=Auth\""
- query:
    bool:
      must_not:
      - query_string:
          query: "\"relay\""
      - query_string:
          query: "\"relay2\""
      - query_string:
          query: "\"logman\""
      - query_string:
          query: "\"account=zimbra\""
      - query_string:
          query: "\"authentication failed\""
      - query_string:
          query: "\"account lockout\""
      - query_string:
          query: "\"PRIVATE IP\""
      - query_string:
          query: "\"Hawaii\""

So just putting it in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roman-tasi
Comment options

Answer selected by roman-tasi
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