> For the complete documentation index, see [llms.txt](https://ilogtail.gitbook.io/ilogtail-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilogtail.gitbook.io/ilogtail-docs/1.4.0/data-pipeline/flusher/flusher-stdout.md).

# 标准输出/文件

## 简介

`flusher_stdout` `flusher`插件可以实现将采集到的数据，经过处理后，打印到标准输出或者自定义文件。

## 版本

[Stable](/ilogtail-docs/1.4.0/data-pipeline/stability-level.md)

## 配置参数

| 参数            | 类型      | 是否必选 | 说明                                |
| ------------- | ------- | ---- | --------------------------------- |
| Type          | String  | 是    | 插件类型                              |
| OnlyStdout    | Boolean | 否    | 是否打印打印到标准输出。true表示标准输出；false表示文件。 |
| FileName      | String  | 否    | 打印到文件时，需指定文件名。                    |
| MaxSize       | Int     | 否    | 打印到文件时，需指定单个文件大小。默认1M。            |
| MaxRolls      | Int     | 否    | 打印到文件时，需指定文件的轮转个数。默认为1。           |
| KeyValuePairs | Boolean | 否    |                                   |
| Tags          | Boolean | 否    |                                   |

## 样例

采集`/home/test-log/`路径下的所有文件名匹配`*.log`规则的文件，并将采集结果打印到标准输出。

```yaml
enable: true
inputs:
  - Type: file_log
    LogPath: /home/test-log/
    FilePattern: "*.log"
flushers:
  - Type: flusher_stdout
    OnlyStdout: true
```
