# Log Collection Guide

The Log Collection Guide helps capture and share relevant logs for troubleshooting issues in CERTInext. Logs provide critical insights into certificate operations, integrations, bots, and system behavior, enabling faster root cause analysis and resolution.

### **When to Collect Logs**

Collect logs for issues such as:

* Certificate issuance, renewal, or provisioning failures
* Bot connectivity or discovery errors
* Integration issues (CA, LDAP, APIs, Cloud)
* SSO or authentication failures
* Performance issues or unexpected errors

### **Log Sources**

* **Platform Logs**: Certificate workflows, user actions, errors
* **Bot Logs**: Discovery, provisioning, connectivity
  * Windows: `C:\Program Files\CERTInext\logs\`
  * Linux: `/opt/certinext/logs/`
* **Integration Logs**: CA, LDAP/AD, Cloud connectors
* **API Logs**: Request/response data
* **System Logs**: OS, network, firewall

### **How to Collect**

1. Identify the issue and timestamp
2. Capture logs from relevant components
3. Export logs from UI (if available)
4. Collect bot/system logs from file paths
5. Compress files (.zip)

### **Required Details**

Include:

* Issue description
* Steps to reproduce
* Timestamp (with timezone)
* Affected system/user
* Environment (Prod/QA)

### **Secure Sharing**

* Upload via support ticket or secure link
* Mask sensitive data (passwords, keys, tokens)

### **Best Practices**

* Collect logs immediately after issue
* Share complete logs (avoid partial data)
* Align timestamps across systems

Accurate log collection ensures faster troubleshooting and effective support. Providing complete logs with context helps CERTInext teams quickly diagnose and resolve issues.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.certinext.io/documentation/support-and-resources/log-collection-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
