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
See [Plugin Management](..//installation/post-installation-guide#plugin-management) section how to install fluent-plugin-elasticsearch on your environment.
30
34
31
-
Now you'll configure the `td-agent`\(Fluentd\) to interface properly with Elasticsearch. Please edit `/etc/td-agent/td-agent.conf` as shown below:
35
+
Now you'll configure the `fluent-package`\(Fluentd\) to interface properly with Elasticsearch. Please edit `/etc/fluent/fluentd.conf` as shown below:
32
36
33
37
```text
34
38
# Switch to debug if you need to debug
@@ -48,10 +52,6 @@ Now you'll configure the `td-agent` \(Fluentd\) to interface properly with Elast
48
52
@type forward
49
53
</source>
50
54
51
-
<filter **>
52
-
@type stdout
53
-
</filter>
54
-
55
55
<match syslog.**>
56
56
@type elasticsearch
57
57
host logsene-receiver.sematext.com
@@ -72,19 +72,15 @@ Now you'll configure the `td-agent` \(Fluentd\) to interface properly with Elast
72
72
</match>
73
73
```
74
74
75
-
Once everything has been set up and configured, start `td-agent`:
75
+
Once everything has been set up and configured, start `fluentd`:
76
76
77
77
```text
78
-
# init
79
-
$ sudo /etc/init.d/td-agent start
80
-
81
-
# or systemd
82
-
$ sudo systemctl start td-agent.service
78
+
$ sudo systemctl start fluentd
83
79
```
84
80
85
81
## Set Up `rsyslogd`
86
82
87
-
Finally, configure forwarding logs from your `rsyslogd` to Fluentd. Please add the following line to your `/etc/rsyslog.conf`, and restart `rsyslog`. This will forward your local syslog to Fluentd, and Fluentd will forward the logs to Sematext:
83
+
Finally, configure forwarding logs from your `rsyslogd` to Fluentd. Create `/etc/rsyslog.d/90-fluentd.conf`, and restart `rsyslog`. This will forward your local syslog to Fluentd, and Fluentd will forward the logs to Sematext:
88
84
89
85
```text
90
86
*.* @127.0.0.1:42185
@@ -93,7 +89,7 @@ Finally, configure forwarding logs from your `rsyslogd` to Fluentd. Please add t
93
89
Please restart the `rsyslog` service once the modification is complete:
94
90
95
91
```text
96
-
$ sudo /etc/init.d/rsyslog restart
92
+
$ sudo systemctl restart rsyslog
97
93
```
98
94
99
95
## Store and Search Logs
@@ -120,7 +116,7 @@ To manually send logs to Sematext, please use the `logger` command:
120
116
$ logger -t test foobar
121
117
```
122
118
123
-
When debugging your `td-agent` configuration, using [`filter_stdout`](../filter/stdout.md) will be useful. All the logs including errors can be found at `/etc/td-agent/td-agent.log`.
119
+
When debugging your `fluent-package` configuration, using [`filter_stdout`](../filter/stdout.md) will be useful. All the logs including errors can be found at `/etc/fluent/fluentd.log`.
0 commit comments