{% extends 'base.html' %}
{% load bootstrap inventory_extras %}
{% block content %}
- Home
- Osquery
- Packs
- {{ object }}
Pack {{ object.name }}
| Attribute |
Value |
| Name |
{{ object.name }} |
| Slug |
{{ object.slug }} |
| Description |
{{ object.description|default:"-"|linebreaksbr }} |
| Discovery quer{{ object.discovery_queries|length|pluralize:"y,ies" }} |
{% if object.discovery_queries %}{{ object.discovery_queries|join:"
" }}{% else %}-{% endif %} |
| Shard |
{% if object.shard %}{{ object.shard }}%{% else %}-{% endif %} |
| Event routing key |
{{ object.event_routing_key|default:"-" }} |
- Created at
- {{ object.created_at|date:'r' }}
- Updated at
- {{ object.updated_at|date:'r' }}
{% if perms.osquery.change_pack %}
Update
{% endif %}
{% if perms.osquery.delete_pack %}
Delete
{% endif %}
{% if perms.osquery.view_configuration %}
Used in {{ configuration_pack_count }} configuration{{ configuration_pack_count|pluralize }}
{% if configuration_pack_count %}
| Name |
Tags |
{% for configuration_pack in configuration_packs %}
| {{ configuration_pack.configuration }} |
{% for tag in configuration_pack.tags.all %}
{% inventory_tag tag %}
{% empty %}
-
{% endfor %}
|
{% endfor %}
{% endif %}
{% endif %}
{% if perms.osquery.view_packquery %}
{{ pack_query_count }} scheduled quer{{ pack_query_count|pluralize:"y,ies" }}
{% if can_add_pack_query %}
Add
{% endif %}
{% for pack_query in pack_queries %}
{% with pack_query.query as query %}
{{ query }}
| Query |
- Name
- {{ query }}
- SQL
- {{ query.get_sql_html|safe }}
{% if query.platforms %}
- Platform{{ query.platforms|length|pluralize }}
- {{ query.platforms|join:", " }}
{% endif %}
{% if query.minimum_osquery_version %}
- Min. osquery ver.
- {{ query.minimum_osquery_version }}
{% endif %}
{% if query.description %}
- Description
- {{ query.description|default:"-" }}
{% endif %}
{% if query.value %}
- Value
- {{ query.value }}
{% endif %}
{% if query.compliance_check %}
- Compliance check
- yes
{% endif %}
|
| Interval |
{{ pack_query.interval }}s |
| Log removed actions? |
{{ pack_query.log_removed_actions|yesno }} |
| Snapshot mode? |
{{ pack_query.snapshot_mode|yesno }} |
| Shard |
{% if pack_query.shard %}{{ pack_query.shard }}%{% else %}-{% endif %} |
| Can be denylisted? |
{{ pack_query.can_be_denylisted|yesno }} |
{% if perms.osquery.change_packquery or perms.osquery.delete_packquery %}
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
{% endblock %}