{% extends "base.html" %} {% from "_ui.html" import icon, lic, when, token, crumbs %} {% block title %}{{ src.name }} - Sources{% endblock %} {% block content %} {{ crumbs([('Sources', '/sources'), (src.name, none)]) }} {% set li = src_lic(src) %}

{{ src.name }} {{ lic(li[0], li[1]) }}

{% if cfg and cfg.notes %}{{ cfg.notes }}
{% endif %}{{ src.url|redact_url }}

{{ icon('search') }}Search this source {% if src.enabled and not missing %}
{{ token() }}
{% endif %}
{% if missing %}
{{ icon('alert') }}

Token missing: set {{ missing }} in the environment of suriharvest serve and suriharvest update. Rules from the last good download are kept.

{% endif %} {% if log and log[0].status not in ('ok', 'running') %}
{{ icon('alert') }}

Skipped in the last update ({{ when(log[0].started_at) }}): {{ friendly_error(log[0].error) or log[0].status }}. Rules from the last good download are kept; the next update tries again.

{% endif %}
{{ n_rules|num }}Rule linesas published, copies included
{{ unique|num }}Unique rulescounted under this source
{{ only_here|num }}Found nowhere elseno other source carries them
{{ n_quar|num }}Quarantined lineslook like rules, do not parse
{% if engines %}

Suricata check

{% for e, ok, bad in engines %}{% set all_ = unique %}
{{ e|eng_label }}{{ ok|num }} load · {{ bad|num }} fail {% if ok %}{% endif %}{% if bad %}{% endif %} {% if ok + bad %}{{ '%.1f'|format(100 * ok / (ok + bad)) }}%{% else %}not checked{% endif %}
{% endfor %}
{% endif %}

Quarantine lines that look like rules but do not parse

{% if quarantine %}
{% for path, line, err, raw in quarantine %}{% endfor %}
File:lineError
{{ path }}:{{ line }}{{ err }}
{{ raw[:240] }}
{% else %}

Empty: every rule line of this source parses.

{% endif %}

Download log

{% for l in log %} {% else %}{% endfor %}
WhenResultRules readNew versionsFiles +/~/−
{{ when(l.started_at) }}{% if l.status == 'ok' %}ok{% else %}{{ l.status }} {{ (l.error or '')[:160] }}{% endif %}{{ l.rules_seen|num }}{{ l.versions_new|num }}+{{ l.files_added }} ~{{ l.files_changed }} −{{ l.files_removed }}
Never downloaded.

Settings

sources.yaml
Type
{{ src.type }}
Priority
{{ src.priority }} (lower wins)
Licence
{{ src.licence or 'none stated' }}
May share
{{ {'yes': 'yes', 'no': 'no: own use only', 'unknown': 'unknown'}.get(src.redistribute, src.redistribute) }}
Sid namespace
{{ src.sid_namespace }}
{% if cfg %}
Tier
{{ cfg.tier or '-' }}
Status
{{ cfg.status }}
{% if cfg.homepage %}
Homepage
{% if cfg.homepage|web_link %}{{ cfg.homepage }}{% else %}{{ cfg.homepage }}{% endif %}
{% endif %}{% endif %}
Last commit
{{ (src.last_commit or '-')[:16] }}

Overlap with other sources

{% if overlap %}
    {% for name, n in overlap %}
  • {{ name }}{{ n|num }} shared rules
  • {% endfor %}
{% else %}

No rule of {{ src.name }} is in another source.

{% endif %}
{% endblock %}