Join our Newsletter — 33% off our NHI Course

FilterX

FilterX is a structured filtering language used in AxoRouter and AxoSyslog to filter, parse, modify, and rewrite log data. It replaces separate filter, parser, and rewrite statements with a more expressive syntax that works better with nested JSON, typed values, and OpenTelemetry records.

Expanded Definition

FilterX is a rule language for shaping log traffic inside AxoRouter and AxoSyslog. It combines filtering, parsing, modification, and rewrite logic in one syntax, which matters when logs contain nested JSON, typed fields, or OpenTelemetry records that are awkward to handle with older statement-by-statement rules.

The boundary to keep clear is that FilterX is not a general-purpose query language or a log-storage format. Its purpose is to decide which records move forward and how selected fields are transformed in transit. That makes it closer to an ingestion and routing control than to an analytics layer. In practice, the main implementation difference is that a single FilterX expression can replace several separate pipeline steps, which reduces rule sprawl but also raises the need for careful readability and testing.

For readers working with structured telemetry, that expressiveness is the point: matching on parsed fields, not raw text, is usually more reliable. The trade-off is that complex rewrite logic can become harder to reason about if teams treat it like ad hoc scripting rather than a governed configuration language.

Examples and Use Cases

FilterX commonly appears in log and telemetry pipelines where routing decisions depend on structured content rather than simple string matches.

  • Routing JSON application logs based on a nested severity field before sending them to different storage or alerting paths.
  • Parsing an OpenTelemetry record, then rewriting selected attributes so downstream systems see a consistent schema.
  • Dropping high-volume debug messages at the edge while preserving error events for later investigation.
  • Normalising field names or values during ingestion so multiple producers feed a shared log pipeline more cleanly.
  • Applying one expression to both inspect and transform records, instead of maintaining separate filter, parser, and rewrite statements.

That consolidation is useful, but it also means a small syntax mistake can affect several stages at once. Teams usually discover that the efficiency gain is real only when the rules are reviewed and tested as production logic, not as incidental text snippets.

Security Implications

FilterX has security relevance because log filtering and rewriting directly affect what defenders can see. If a rule drops records too aggressively, rewrites fields incorrectly, or parses structured input in a way that misses edge cases, investigations can lose the very evidence needed to detect abuse, trace privilege misuse, or reconstruct an incident.

Another common failure mode is over-trust in transformed data. If a pipeline rewrites values into a cleaner form without preserving the original context, analysts may no longer know whether a field was original, derived, or partially parsed. That can create false confidence in dashboards, suppress useful anomaly signals, and make alerts harder to validate.

Because FilterX can operate on nested JSON and typed values, malformed or unexpected input is also more likely to produce silent misclassification than a simple text filter would. The practical symptom is often not an outage but an absence: missing events, incomplete records, or inconsistent routing that only becomes visible when an investigation depends on the skipped data.

Domain and Governance Relevance

FilterX sits in the operational control plane for observability, so its governance value is in consistency, traceability, and change control. In mature environments, the question is not whether rules can be made more expressive, but whether teams can still explain why a record was filtered, rewritten, or forwarded a certain way.

For identity-heavy or automation-heavy environments, that matters because logs are often the only durable evidence of machine activity, token use, or service-to-service interactions. If FilterX rules strip the wrong fields or merge distinct event types, the resulting telemetry can weaken accountability even when the underlying systems are functioning correctly.

NHIMG treats this as a trust-in-pipeline issue: structured filtering is valuable when it improves precision without obscuring provenance. The governance concern is therefore less about the syntax itself and more about whether the organisation can preserve auditability as it centralises routing, parsing, and rewriting into a single expression layer.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 8 — Audit Log Management FilterX shapes what logs are retained and forwarded.
Recommendation — Review FilterX rules so audit logs remain complete, usable, and consistent for investigation.
NIST CSF 2.0 DE.CM-1 — Monitoring for Unauthorized Events Filtering and rewriting can affect detection visibility.
PR.DS-5 — Data Destruction Aggressive filtering can effectively remove evidence needed later.
Recommendation — Preserve event visibility in FilterX so monitoring can reliably surface unauthorized activity. Avoid FilterX rules that discard records needed to maintain evidentiary data availability.
OWASP Non-Human Identity Top 10 NHI-07 — Auditability and Monitoring Telemetry integrity matters when logs capture machine and service identity activity.
Recommendation — Keep FilterX transformations traceable so NHI-related events remain attributable and reviewable.