# Splunk: Apache-style combined access logs

Open [ai_file_requests.spl](ai_file_requests.spl), replace `YOUR_WEB_INDEX` with an index you are authorized to search, and keep `sourcetype=access_combined` only if that source type describes your input. The default window is the last 24 hours.

Prerequisites: Splunk Enterprise or Splunk Cloud search access, inbound server access logs ingested into the selected index, and working combined-format extractions. Ingestion, retention, and search entitlement depend on your subscription. Enterprise Security and an accelerated data model are not required. This is a manual hunt; no alert or saved search is installed.

This search uses the established `access_combined` extraction's `uri` field for the original request target, `clientip` for the client visible to the server, and `method`, `status`, and `bytes` for context. Confirm them on your own input first:

```spl
index=YOUR_WEB_INDEX sourcetype=access_combined earliest=-24h
| head 20
| table _time host source uri clientip method status bytes
```

If `uri` is missing, the hunt returns no matches. For nginx producing combined-format logs, use `access_combined` only after validating that parsing and extraction fit. For a different source type or a CIM-mapped dataset, select that actual source explicitly and replace `uri` with its documented request-target field. Do not union arbitrary `url`, `dest`, or endpoint fields with different meanings.

The search splits the literal query separator before one `urldecode` pass, then lowercases and anchors the filename at the end. `OriginalTarget`, `MatchPath`, `CredentialPath`, and `Finding` are local search results, not custom telemetry. `OriginalTarget` can include query values: keep results access-controlled and redact before sharing. Client identity may reflect a proxy; `host` is ingestion context and `source` identifies the selected input.

Verify a known authorized request to an absent selected filename reaches the search, alongside an ordinary page and a query-only filename mention. Local fixtures and a separate pySigma-to-Splunk conversion were checked. This manually authored SPL was not compiled or executed by a Splunk tenant. See [scope limits](../README.md#scope-and-normalization).

Primary references: [Splunk combined source-type configuration](https://help.splunk.com/en/splunk-enterprise/get-data-in/get-started-with-getting-data-in/10.2/configure-source-types/create-source-types), [Splunk SPL and field examples](https://www.splunk.com/en_us/blog/learn/splunk-cheat-sheet-query-spl-regex-commands.html), and [evaluation functions](https://help.splunk.com/en/splunk-enterprise/spl-search-reference/10.2/evaluation-functions/evaluation-functions).
