This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cat <<EOF | sudo tee /etc/apt/sources.list.d/influxdata.list | |
| deb https://repos.influxdata.com/ubuntu bionic stable | |
| EOF | |
| sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get -y install telegraf | |
| sudo systemctl enable --now telegraf | |
| sudo systemctl is-enabled telegraf | |
| systemctl status telegraf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE s3_access_logs_db; | |
| CREATE EXTERNAL TABLE `s3_access_logs_db.mybucket_logs`( | |
| `bucketowner` STRING, | |
| `bucket_name` STRING, | |
| `requestdatetime` STRING, | |
| `remoteip` STRING, | |
| `requester` STRING, | |
| `requestid` STRING, | |
| `operation` STRING, |
OlderNewer