快速开始
采集主机日志
wget https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/latest/ilogtail-latest.linux-amd64.tar.gz tar -xzvf ilogtail-latest.linux-amd64.tar.gz cd ilogtail-<version>enable: true inputs: - Type: input_file # 文件输入类型 FilePaths: - ./simple.log flushers: - Type: flusher_stdout # 标准输出流输出类型 OnlyStdout: truecd ./config/local wget https://raw.githubusercontent.com/alibaba/ilogtail/main/example_config/quick_start/config/file_simple.yaml cd -nohup ./ilogtail > stdout.log 2> stderr.log &echo 'Hello, iLogtail!' >> simple.logcat stdout.log2022-07-15 00:20:29 {"__tag__:__path__":"./simple.log","content":"Hello, iLogtail!","__time__":"1657815627"}
更多采集配置
Last updated