# 日志采集 **Repository Path**: zhu-xishun/logprocess ## Basic Information - **Project Name**: 日志采集 - **Description**: 1、采集nginx日志 2、读取解析日志储存到influxdb - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-20 - **Last Updated**: 2022-02-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装influxdb ```shell script docker run --name influxdb -p 8086:8086 influxdb:1.7 docker exec -it influxdb bash ``` ```shell script influx > create database mydb //创建数据库 > show databases //显示库 > show measurements //显示表 > CREATE USER admin WITH PASSWORD '12345678' WITH ALL PRIVILEGES //授权 > select * from nginx_log //查询数据 ```