{% extends "rules/base.html" %} {% load staticfiles %} {% load bootstrap3 %} {% block sidebar %}

{{ rule.sid }}

{% if kibana and kibana_version >= 4 or evebox %}

Events list

{% endif %} {% if request.user.is_staff %}

Action

{% endif %} {% endblock %} {% block content %}

{{ rule.msg }}

{% if references or rule.get_comments %}
{% if references %}

References

    {% for ref in references %}
  • {% if ref.url %} {{ ref.key|capfirst }}: {{ ref.value|truncatechars:80}} {% else %} {{ ref.key }}: {{ ref.value }} {% endif %}
  • {% endfor %}
{% endif %} {% if rule.get_comments %}

Information

{% if rule.get_comments %} Comment {{ rule.get_comments|length }} {% endif %}
{% endif %}
{% endif %}
{% if elasticsearch %}

Hits by host (last {{ date }})

Fetching data...

Source IP (last {{ date }})

Fetching data...

Destination IP (last {{ date }})

Fetching data...
{% if probes %}

Activity (last {{ date }})

Fetching data...

{% endif %}

Definition

{{ rule.highlight_content|safe }}
{% if rule_transformations %}

Rule transformation(s)

{% for ruleset in rulesets %} {% if ruleset.drop or ruleset.reject or ruleset.filestore %}

{{ ruleset.name }}

{{ ruleset.content|safe }}
{% endif %} {% endfor %} {% endif %} {% endif %}

Status in rulesets

{% for ruleset in rulesets %}
{{ ruleset.status}}
Validity
{% if ruleset.threshold %}
Threshold
{% endif %} {% if ruleset.reject %}
Reject
{% endif %} {% if ruleset.drop %}
Drop
{% endif %} {% if ruleset.filestore %}
Filestore
{% endif %}
{% endfor %}
{% if thresholds %}

Thresholds

{% load render_table from django_tables2 %} {% render_table thresholds %}
{% endif %} {% if suppress %}

Suppressions

{% render_table suppress %}
{% endif %} {% if elasticsearch %}

History

{% if rule.get_actions %} {% for comment in rule.get_actions %} {% include "rules/useraction.html" %} {% endfor %} {% else %} No comment. {% endif %}

Add comment

{% csrf_token %} {% bootstrap_form comment_form %} {% buttons %} {% endbuttons %}
{% endif %}
{% endblock %}