title: How to filter Journald PRIORITY in Vector?
body: <p>I'm trying to limit the journald logs my vector config picks up but it appears not to work. There are no error messages. Vector is sending all logs to loki. The vector version is 0.22.2.</p>
  <p>Here is my vector.toml file:</p>
  <pre><code>[sources.host_journald_source]
  type = &quot;journald&quot;
  current_boot_only = true
  
  [transforms.host_journald_filter]
  type = &quot;filter&quot;
  inputs = [&quot;host_journald_source&quot;]
  condition = '''
      includes([&quot;0&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;], .PRIORITY)
  '''
  </code></pre>
  <p>Here is an example of a log I want to exclude in my grafana loki datasource explorer:</p>
  <pre><code>Log labels
  boot_id 7d16b8f4fc2a4366b9e705f52b75979e
  cmdline /sbin/init
  host    myhost-test
  message run-docker-runtime\x2drunc-moby-3995a89e568b3d38fd01a158b8bfd5e02e27b05c60c128aed8a71ed121b44c07-runc.t7aKhj.mount: Deactivated successfully.
  Detected fields
  CODE_FILE   &quot;src/core/unit.c&quot;
  CODE_FUNC   &quot;unit_log_success&quot;
  CODE_LINE   &quot;5553&quot;
  INVOCATION_ID   &quot;e5b739ebc26a4897bd1288844a875d10&quot;
  MESSAGE_ID  &quot;7ad2d189f7e94e70a38c781354912448&quot;
  PRIORITY    &quot;6&quot;
  SYSLOG_FACILITY &quot;3&quot;
  SYSLOG_IDENTIFIER   &quot;systemd&quot;
  TID &quot;1&quot;
  Time    1655917978170
  UNIT    &quot;run-docker-runtime\\x2drunc-moby-3995a89e568b3d38fd01a158b8bfd5e02e27b05c60c128aed8a71ed121b44c07-runc.t7aKhj.mount&quot;
  _BOOT_ID    &quot;7d16b8f4fc2a4366b9e705f52b75979e&quot;
  _CAP_EFFECTIVE  &quot;1ffffffffff&quot;
  _CMDLINE    &quot;/sbin/init&quot;
  _COMM   &quot;systemd&quot;
  _EXE    &quot;/usr/lib/systemd/systemd&quot;
  _GID    &quot;0&quot;
  _MACHINE_ID &quot;fff69d4a6e8643678404cfa6b346143b&quot;
  _PID    &quot;1&quot;
  _SELINUX_CONTEXT    &quot;unconfined\n&quot;
  _SOURCE_REALTIME_TIMESTAMP  &quot;1655917978170117&quot;
  _SYSTEMD_CGROUP &quot;/init.scope&quot;
  _SYSTEMD_SLICE  &quot;-.slice&quot;
  _SYSTEMD_UNIT   &quot;init.scope&quot;
  _TRANSPORT  &quot;journal&quot;
  _UID    &quot;0&quot;
  __MONOTONIC_TIMESTAMP   &quot;35722646432&quot;
  __REALTIME_TIMESTAMP    &quot;1655917978172193&quot;
  host    &quot;myhost-test&quot;
  labels  [object Object]
  message &quot;run-docker-runtime\\x2drunc-moby-3995a89e568b3d38fd01a158b8bfd5e02e27b05c60c128aed8a71ed121b44c07-runc.t7aKhj.mount: Deactivated successfully.&quot;
  source_type &quot;journald&quot;
  tsNs    1655917978170117000
  </code></pre>