Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/how/extract-container-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,22 @@ docker exec --privileged 122a2488ab63 cat /tmp/datahub/logs/gms/gms.debug.log >

Now you should be able to view the logs locally.

### Ingestion Logs Location and Management

- **Log Location**: Ingestion logs for the actions pod are stored in the `/tmp/datahub/logs` directory within the pod. Logs are dynamically created under `/tmp/datahub/ingest/{ingestion_exec_id}/` and are deleted after the ingestion process completes.

- **Log Lifecycle**: Logs are temporary and are deleted after the ingestion process completes, so timely access is important for debugging purposes.

- **Accessing Logs**: Use `kubectl exec` to access the pod and view the logs. Example command:
```bash
kubectl exec <actions-pod-name> -n <namespace> -- ls -la /tmp/datahub/logs
```

- **Saving Logs**: To save logs to the local filesystem for further analysis, use `kubectl cp` or shell redirection. Example:
```bash
kubectl cp <namespace>/<actions-pod-name>:/tmp/datahub/logs/my-log.log ./my-local-log.log
```

### Kubernetes & Helm

There are a few ways to get files out of the pod and into a local file. You can either use `kubectl cp` or simply `cat` and pipe the file of interest. We'll show an example using the latter approach:
Expand Down
20 changes: 20 additions & 0 deletions docs/ui-ingestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,26 @@ on the corresponding ingestion run.
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/ingestion-logs.png"/>
</p>

## Ingestion Logs Location and Management

### Log Location
Ingestion logs for the actions pod are stored in the `/tmp/datahub/logs` directory within the pod. Logs are dynamically created under `/tmp/datahub/ingest/{ingestion_exec_id}/` and are deleted after the ingestion process completes.

### Log Lifecycle
Logs are temporary and are deleted after the ingestion process completes, so timely access is crucial for debugging purposes.

### Accessing Logs
To access the logs, use the `kubectl exec` command to enter the pod and view the logs. Example:
```bash
kubectl exec <actions-pod-name> -n <namespace> -- ls -la /tmp/datahub/logs
```

### Saving Logs
To save logs to your local filesystem for further analysis, use `kubectl cp` or redirect the output to a file. Example:
```bash
kubectl cp <namespace>/<actions-pod-name>:/tmp/datahub/logs ./local-logs
```


## FAQ

Expand Down