{% extends 'base.html' %} {% load bootstrap inventory_extras %} {% block content %}

Query {{ object.name }}

{% if perms.osquery.view_pack %} {% endif %}
Attribute Value
Name {{ object.name }}
SQL {{ object.get_sql_html|safe }}
Platform{{ object.platforms|length|pluralize }} {{ object.platforms|join:", "|default:"-" }}
Minimum osquery version {{ object.minimum_osquery_version|default:"-" }}
Description {{ object.description|default:"-"|linebreaksbr }}
Value {{ object.value|default:"-"|linebreaksbr }}
Pack {% if pack_query %}{{ pack_query.pack }}{% else %}-{% endif %}
Compliance check {% if object.compliance_check %}yes{% else %}no{% endif %}
Version
{{ object.version }}
Created at
{{ object.created_at|date:'r' }}
Updated at
{{ object.updated_at|date:'r' }}
{% if perms.osquery.change_query %} Update {% endif %} {% if events_url %} Events {% endif %} {% for link, anchor_text in store_links %} {{ anchor_text }} {% endfor %} {% if perms.osquery.delete_query %} Delete {% endif %}
{% if perms.osquery.view_distributedquery %}

{{ distributed_query_count }} Run{{ distributed_query_count|pluralize }}

{% if perms.osquery.add_distributedquery %}

🚀 Launch

{% endif %} {% if distributed_query_count %} {% for distributed_query in distributed_queries %} {% endfor %}
# Query version Valid from Valid until In flight OK Err
{{ distributed_query }} {{ distributed_query.query_version }} {{ distributed_query.valid_from }} {{ distributed_query.valid_until|default:"-" }} {{ distributed_query.in_flight_count }} {{ distributed_query.ok_count }} {{ distributed_query.error_count }}
{% endif %} {% endif %} {% endblock %}