> For the complete documentation index, see [llms.txt](https://docs.certinext.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.certinext.io/documentation/support-and-resources/log-collection-guide.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
