# CrowdStrike CQL: ingested Apache access logs

Run [private_configuration_requests.cql](private_configuration_requests.cql) in a Falcon LogScale repository/view, or a Next-Gen SIEM CQL view, containing separately ingested Apache access logs. Select a short time range. Start with this source-only preview and inspect the raw events:

```text
#logtype="apache-access-log" @rawstring=*
```

Follow the documented [apache/http-server integration](https://library.humio.com/integrations/integrations-apache-http-server.html) and its [ingestion guide](https://library.humio.com/integrations/integrations-apache-http-server-configure.html). The [integration dashboard queries](https://library.humio.com/integrations/integrations-apache-http-server-apache-http-server.html) document `#logtype="apache-access-log"`. Confirm this tag identifies your access logs and that `@rawstring` is retained. If your approved parser uses a different tag, replace the selector only after checking the source. The package documentation lists version 1.0.1 and minimum LogScale 1.42.0; that is the integration package minimum, not a tested minimum for this hunt's functions.

You need LogScale or Next-Gen SIEM search access, repository/view permission, and third-party ingestion entitlement. Confirm retention and compatible CQL functions with your administrator. A Falcon endpoint sensor or endpoint-only license does not supply inbound web request paths.

The request parser expects each original event to start with a client token, two ident/user tokens, a bracketed timestamp, and a quoted `METHOD target HTTP/version`. It fits Nginx's usual combined layout and Apache common/combined layout. JSON, syslog wrappers, virtual-host prefixes, discarded original messages, or different escaping need a separately checked parser. It accepts origin-form targets beginning with `/`. An optional status parse never suppresses a matching request. Keep the original event because the trailing combined-format User-Agent supplies triage context. All `hunt_` fields are search-time outputs.

This supplied selector is for the documented Apache integration. For Nginx combined lines, the same request-layout expression is applicable only after you separately configure and verify actual ingestion and its tag; this is not a stock Nginx package claim. `strict=false` applies only to status. Target/path/decode existence guards keep missing parses out. `case` drops unmatched events; each branch has one literal suffix predicate. Retain event time, repository/source identity, and `@rawstring` in results.

References: [regex](https://library.humio.com/crowdstrike-query-language/functions-regex.html), [urlDecode](https://library.humio.com/crowdstrike-query-language/functions-urldecode.html), [upper](https://library.humio.com/crowdstrike-query-language/functions-upper.html), [in](https://library.humio.com/crowdstrike-query-language/functions-in.html), and [text:endsWith](https://library.humio.com/crowdstrike-query-language/functions-text-endswith.html). Read common [compatibility limits](../README.md#match-scope-and-compatibility).
