> For the complete documentation index, see [llms.txt](https://arkdocs.analysys.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arkdocs.analysys.cn/integration/open-original-export/ark-tools-export/ark-tools-export-event.md).

# 事件数据导出

## 1. 介绍说明

导出方舟项目的事件数据到本地。

## 2. 运行环境

导出工具需要在JAVA环境中运行，单机版和集群版都可以使用。

{% hint style="info" %}
1、导出工具需要在方舟部署服务器/可访问方舟服务器上的机器上使用；

2、为了避免网络异常、数据传输速度等造成数据导出慢等问题，**建议**数据导出工作在**方舟**部署的任一**服务器上**使用。
{% endhint %}

## 3. 使用方法

事件数据导出工具通过父命令+子命令的形式直接启动。

### 3.1.参数说明

| 参数名称      | 参数示例                   | 参数说明                                                      | 是否必传 |
| --------- | ---------------------- | --------------------------------------------------------- | ---- |
| -k        | 31abd9593e9983ec       | 项目appKey                                                  | 是    |
| -T        | 4113c9cad1c301113783f3 | 项目token，对应的API AccessKey                                  | 是    |
| -s        | 20201020               | 导出数据的开始时间，格式为yyyyMMdd                                     | 是    |
| -e        | 20201023               | 导出数据的结束时间，格式为yyyyMMdd                                     | 是    |
| -d        | /data/tmp/20201027/    | 指定导出的目录                                                   | 否    |
| -m        | true                   | <p>出时结果为多个文件 true为每日一个文件</p><p>false为所有日期一个文件 默认为true</p> | 否    |
| --help/-h | 无                      | 显示事件数据导出帮助文档                                              | 否    |

### 3.2.项目token位置获取

token获取路径：

```
右下角管理->项目概览
```

![](/files/-MRJMtQb-YpQSFAEp9YJ)

### 3.3.示例展示

导出项目test123321 20201020到20201023的事件数据到文件夹/data/tmp/20201203/下。

```
arksh event-export -k test123321 -T 444ed5f2f167c1364494100fe8cf616e -s 20201020 -e 20201023 -d /data/tmp/20201203/
```


---

# 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://arkdocs.analysys.cn/integration/open-original-export/ark-tools-export/ark-tools-export-event.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.
