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

{{ object.name }}

{% if events_url %} {% button 'EVENTS' events_url %} {% endif %} {% for link, anchor_text in store_links %} {{ anchor_text }} {% endfor %}

Query

{% if perms.osquery.change_query %} {% url 'osquery:update_query' object.id as url %} {% button 'UPDATE' url "Edit Query" %} {% endif %} {% if perms.osquery.delete_query %} {% url 'osquery:delete_query' object.id as url %} {% button 'DELETE' url "Delete Query" %} {% endif %}
{% 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 %}
Tag {% if object.tag %}{% inventory_tag object.tag %}{% else %}-{% endif %}
{% created_updated_at object %}
{% if perms.osquery.view_distributedquery %}

Run{{ distributed_query_count|pluralize }} ({{ distributed_query_count }})

{% 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 %}