count: 1
match:
event_type: engine
- engine.message: "can't use a relative keyword like within\/distance with a absolute relative keyword like depth\/offset for the same content."
+ engine.message: "can't use a relative keyword like within/distance with a absolute relative keyword like depth/offset for the same content."
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "can't use a relative keyword like within\/distance with a absolute relative keyword like depth\/offset for the same content."
+ engine.message: "can't use a relative keyword like within/distance with a absolute relative keyword like depth/offset for the same content."
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "depth needs preceding content, uricontent option, http_client_body, http_server_body, http_header option, http_raw_header option, http_method option, http_cookie, http_raw_uri, http_stat_msg, http_stat_code, http_user_agent, http_host, http_raw_host or file_data\/dce_stub_data sticky buffer options"
+ engine.message: "depth needs preceding content, uricontent option, http_client_body, http_server_body, http_header option, http_raw_header option, http_method option, http_cookie, http_raw_uri, http_stat_msg, http_stat_code, http_user_agent, http_host, http_raw_host or file_data/dce_stub_data sticky buffer options"
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "can't use a relative keyword like within\/distance with a absolute relative keyword like depth\/offset for the same content."
+ engine.message: "can't use a relative keyword like within/distance with a absolute relative keyword like depth/offset for the same content."
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "depth needs preceding content, uricontent option, http_client_body, http_server_body, http_header option, http_raw_header option, http_method option, http_cookie, http_raw_uri, http_stat_msg, http_stat_code, http_user_agent, http_host, http_raw_host or file_data\/dce_stub_data sticky buffer options"
+ engine.message: "depth needs preceding content, uricontent option, http_client_body, http_server_body, http_header option, http_raw_header option, http_method option, http_cookie, http_raw_uri, http_stat_msg, http_stat_code, http_user_agent, http_host, http_raw_host or file_data/dce_stub_data sticky buffer options"
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "can't use a relative keyword like within\/distance with a absolute relative keyword like depth\/offset for the same content."
+ engine.message: "can't use a relative keyword like within/distance with a absolute relative keyword like depth/offset for the same content."
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "can't use multiple offsets for the same content."
+ engine.message: "can't use multiple offsets for the same content. "
- filter:
count: 1
count: 1
match:
event_type: engine
- engine.message: "can't use a relative keyword like within\/distance with a absolute relative keyword like depth\/offset for the same content."
+ engine.message: "can't use a relative keyword like within/distance with a absolute relative keyword like depth/offset for the same content."
- filter:
count: 1
--- /dev/null
+%YAML 1.1
+---
+
+logging:
+ default-log-level: info
+ outputs:
+ - file:
+ enabled: yes
+ filename: eve.json
+ type: json
--- /dev/null
+alert udp any any -> any any (msg:"TEST SUCCESFULL - Too Many Semicolons INVALID combination "; content:"AA"; content:"BB";; within:5; sid:6666668; rev:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+command: |
+ ${SRCDIR}/src/suricata --set classification-file="${SRCDIR}/classification.config" --set reference-config-file="${SRCDIR}/reference.config" -l ${OUTPUT_DIR} -c ${TEST_DIR}/suricata.yaml -r ${TEST_DIR}/ -S ${TEST_DIR}/test.rules
+
+checks:
+ # check that we have the following entres in eve.json
+ # match 1 specific rule load failure reason
+ - filter:
+ count: 1
+ match:
+ event_type: engine
+ engine.message: "unknown rule keyword ''."
+
+ - filter:
+ count: 1
+ match:
+ event_type: engine
+ engine.error: "SC_ERR_NO_RULES_LOADED"