You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, run the initial setup process and create/configure the following:
53
32
54
-
```text
55
-
$ sudo systemctl start chronograf
56
-
```
33
+
* Create `influxdb` user
34
+
* Create proper operation token
35
+
* Set `fluent` organization
36
+
* Create `test` bucket
37
+
* Crete access API token
57
38
58
-
Then, go to localhost:8888 \(or wherever you are hosting Chronograf\) to access Chronograf's web console which is the successor to InfluxDB's web console.
39
+
See [Set up InfluxDB](https://docs.influxdata.com/influxdb/v2/get-started/setup/).
59
40
60
-
Create a database called `test`. This is where we will be storing `syslog` data:
If [`out_influxdb`](https://github.com/influxdata/influxdb-plugin-fluent) (fluent-plugin-influxdb-v2) is not installed yet, please install it manually.
91
64
92
-
```text
93
-
fluent-gem install fluent-plugin-influxdb
94
-
```
65
+
See [Plugin Management](..//installation/post-installation-guide#plugin-management) section how to install fluent-plugin-influxdb-v2 on your environment.
95
66
96
-
You might need `sudo` to install the plugin.
67
+
{% hint style='warning' %}
68
+
Do not install fluent-plugin-influxdb, it does not support for InfluxDB v2.
69
+
{% endhint %}
97
70
98
-
Finally, configure `/etc/td-agent/td-agent.conf` as follows:
71
+
Finally, configure `/etc/fluent/fluentd.conf` as follows:
99
72
100
73
```text
101
74
<source>
@@ -106,24 +79,28 @@ Finally, configure `/etc/td-agent/td-agent.conf` as follows:
106
79
107
80
<match system.*.*>
108
81
@type influxdb
109
-
dbname test
110
-
flush_interval 10s # for testing
111
-
host YOUR_INFLUXDB_HOST # default: localhost
112
-
port YOUR_INFLUXDB_PORT # default: 8086
82
+
url http://localhost:8086
83
+
org fluent
84
+
bucket test
85
+
token "ACCESS_TOKEN_HERE"
86
+
use_ssl false
87
+
<buffer>
88
+
flush_interval 10s # for testing
89
+
<buffer>
113
90
</match>
114
91
```
115
92
116
-
Restart `td-agent` with `sudo service td-agent restart`.
93
+
Restart `fluentd` with `sudo systemctl restart fluentd`.
117
94
118
95
## Step 3: Configure `rsyslogd`
119
96
120
-
If remote `rsyslogd` instances are already collecting data into the aggregator `rsyslogd`, the settings for `rsyslog` should remain unchanged. However, if this is a brand new setup, start forward `syslog` output by adding the following line to `/etc/rsyslogd.conf`:
97
+
If remote `rsyslogd` instances are already collecting data into the aggregator `rsyslogd`, the settings for `rsyslog` should remain unchanged. However, if this is a brand new setup, create `/etc/rsyslogd.d/90-fluentd.conf` and append the following line:
121
98
122
99
```text
123
-
*.* @182.39.20.2:42185
100
+
*.* @localhost:42185
124
101
```
125
102
126
-
You should replace `182.39.20.2` with the IP address of your aggregator server. Also, there is nothing special about port `42185`\(do make sure this port is open though\).
103
+
You should replace `localhost` with the IP address of your aggregator server. Also, there is nothing special about port `42185`\(do make sure this port is open though\).
Setup Chronograf "InfluxDB v2 Auth" to connect with InfludDB v2. See [Use Chronograf with InfluxDB OSS](https://docs.influxdata.com/influxdb/v2/tools/chronograf/).
123
+
{% endhint %}
124
+
125
+
Then, go to http://localhost:8888 and clicking on `Explore` brings up the query interface that **lets you write SQL queries against your log data**.
139
126
140
127
And then click `Visualization` and select the line chart:
0 commit comments