> For the complete documentation index, see [llms.txt](https://docs.cloudfabrix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudfabrix.io/rda/rda-userguide/rda-data-management-cfxdm/cfxdm-dm-hist.md).

# cfxdm - dm:hist

**dm:hist:** This cfxdm tag allows the user to generate an histogram out of timeseries data from a selected extension's tag.

**dm:hist** synta&#x78;**:**

* **timestamp (mandatory):** select timestamp column from the selected extension's tag.
* **interval (mandatory):** select the interval in days or hours or minutes or seconds. (Ex: 1d (day), 4h (hour), 15min (minutes), 30s (seconds)&#x20;

In the below example, for a reference, we are going to use **Elasticsearch** as an extension to query the timeseries data index (or indexes) and ingest it into **dm:hist** to generate an histogram.

Enter the below command to select **Elasticsearch's index tag (#es124111:winlog-events**). (In this example, **es124111** name is used as a label to identify Elasticsearch extension, and **winlog-events** representing Windows log events indexes with Elasticsearch extension as a tag. The label is defined while adding the extension in cfxdx configuration file or through UI or CLI)

```
tag #es124111:winlog-events
```

![](/files/-MVxKLt997lMZ45Va0qk)

**Example 1:** Select log events as timeseries data and generate an histogram

Get timeseries data out of Windows log events from Elasticsearch tag for last 10 hours with an interval of 1 hour and generate an histogram.

**Timestamp Column:**

* **@timestamp**

```
data `@timestamp` after -10 hour --> dm:hist timestamp = '@timestamp' & interval = '1h'
```

![](/files/-MVxNAwU4oQvLxMNIo_F)


---

# 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.cloudfabrix.io/rda/rda-userguide/rda-data-management-cfxdm/cfxdm-dm-hist.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.
