# Troubleshooting a data-product

## Logs for Data-products

In the server, data-product generates two types of logs when running a job.

### 1. Execution log

The spark script code execution log can be found in the below location of the server.

```
/mount/data/analytics/logs/lern-data-products/{{date}}-job-execution.log
```

### 2. Joblog

Also, from the job we are having logs for identifying the status of the job. This type of log configurable to put either in log file or kafka topic based on below config.

```
log.appender.kafka.enable="{{ boolean }}"
log.appender.kafka.broker_host="{{ host }}:9092"
log.appender.kafka.topic="{{ env }}.druid.events.log"
```

If `log.appender.kafka.enable` is `false`, the log goes into the below file.

```
/mount/data/analytics/scripts/logs/joblog.log
```


---

# 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://lern.sunbird.org/use/developer-guide/user-and-org-service/reports/data-products-developer-installation/troubleshooting-a-data-product.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.
