---
title: "Using a request id from your logs to find a user IP"
date: "2022-03-15T04:12:15+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94546-using-request-id-your-logs-find-user-ip"
id: "a224d8f5-6d55-44d7-847b-6cf19c4aadd9"
---

By default, Acquia retains Apache, Drupal, PHP and MySQL logs that contain information on site and user behavior for your application. As information for a single request is spread across these logs, narrowing down information can, at times, be challenging. 

Acquia Cloud assigns each request a unique `request_id` in the HTTP header `X-Request-ID`, and preserves that `request_id` across multiple log files.

Once you have identified a `request_id` in the `drupal-request` log file, you can use `grep` and/or `zgrep` in the command line to check to which entry in the `access.log` file this request is associated to.

For example:

`grep "unique request id" example.log`

`zgrep "unique request id" example.gz`

Please note that you can access all your log files by connecting to your web servers, as explained in [https://docs.acquia.com/cloud-platform/monitor/logs/](/node/56379).