# Splunk: collected Nginx combined access logs

Use [private_configuration_requests.spl](private_configuration_requests.spl) in Splunk Search. Replace `YOUR_WEB_INDEX` with the authorized index. Keep `sourcetype=access_combined` only when your Nginx combined-format input is actually ingested as that type. The query searches 24 hours and parses `_raw` directly, avoiding dependency on optional field extractions.

You need Splunk Enterprise or Splunk Cloud search permission and access-log ingestion/retention entitlement. Enterprise Security and an accelerated data model are not required. Operators follow the Splunk 10.2 SPL documentation; no minimum deployment version was tested. Preview first:

```spl
index=YOUR_WEB_INDEX sourcetype=access_combined earliest=-24h
| head 20
| table _time host source _raw
```

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.

The [like comparison](https://help.splunk.com/en/splunk-enterprise/spl-search-reference/10.2/evaluation-functions/comparison-and-conditional-functions) predicates use `%` as a prefix wildcard; the selected suffix characters are literal, including dots. `host` and `source` are ingestion context, and `hunt_client` is the address/token in the raw access line. `hunt_target` can contain query values; redact before sharing. Source references: [combined source types](https://help.splunk.com/en/splunk-enterprise/get-data-in/get-started-with-getting-data-in/10.2/configure-source-types/create-source-types), [rex](https://help.splunk.com/en/splunk-enterprise/spl-search-reference/10.2/search-commands/rex), and [evaluation functions](https://help.splunk.com/en/splunk-enterprise/spl-search-reference/10.2/evaluation-functions/evaluation-functions). Read common [compatibility limits](../README.md#match-scope-and-compatibility).
