JNPRAutomate / fluent-plugin-juniper-telemetry

Fluentd plugin for Juniper telemetry
Apache License 2.0
21 stars 13 forks source link

Using flugin with td-agent fluentd #12

Open longvd89 opened 5 years ago

longvd89 commented 5 years ago

`'####

Output descriptions:

Treasure Data (http://www.treasure-data.com/) provides cloud based data

analytics platform, which easily stores and processes data from td-agent.

FREE plan is also provided.

@see http://docs.fluentd.org/articles/http-to-td

#

This section matches events whose tag is td.DATABASE.TABLE

match tag=debug.** and dump to console

<match debug.**>

@type stdout

@id output_stdout

<match jnpr.**> @type stdout @id stdout_output

Source descriptions:

built-in TCP input

@see http://docs.fluentd.org/articles/in_forward

@type forward @id input_forward

#################

Input

#################

########## Jvision ################

@type udp
tag juniperNetworks
format none

format juniper_udp_native

port 5001
bind 0.0.0.0
message_length_limit 5000

@type udp
tag jnpr.test
format none
format juniper_jti
port 5000
bind 0.0.0.0

body_size_limit 4MB

built-in UNIX socket input

type unix

HTTP input

POST http://localhost:8888/?json=

POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"}

@see http://docs.fluentd.org/articles/in_http

@type http @id input_http port 8888

live debugging agent

@type debug_agent @id input_debug_agent bind 127.0.0.1 port 24230

Examples:

File input

read apache logs continuously and tags td.apache.access

@type tail

@id input_tail

@type apache2

path /var/log/httpd-access.log

tag td.apache.access

File output

match tag=local.** and write to file

<match local.**>

@type file

@id output_file

path /var/log/td-agent/access

Forwarding

match tag=system.** and forward to another td-agent server

<match system.**>

@type forward

@id output_system_forward

#

host 192.168.0.11

secondary host is optional

host 192.168.0.12

Multiple output

match tag=td.. and output to Treasure Data AND file

<match td..>

@type copy

@id output_copy

@type tdlog

apikey API_KEY

auto_create_table

@type file

path /var/log/td-agent/buffer/td

@type file

path /var/log/td-agent/td-%Y-%m-%d/%H.log

`

i write file config : /etc/td-agent/td-agent.conf input is udp but i run service has error : td-agent.service: Control process exited, code=exited status=1 Jul 23 18:25:32 telemetry-lab systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data. Jul 23 18:25:32 telemetry-lab systemd[1]: td-agent.service: Unit entered failed state. Jul 23 18:25:32 telemetry-lab systemd[1]: td-agent.service: Failed with result 'exit-code'. Jul 23 18:25:32 telemetry-lab systemd[1]: td-agent.service: Service hold-off time over, scheduling restart. Jul 23 18:25:32 telemetry-lab systemd[1]: Stopped td-agent: Fluentd based data collector for Treasure Data. Jul 23 18:25:32 telemetry-lab systemd[1]: td-agent.service: Start request repeated too quickly. Jul 23 18:25:32 telemetry-lab systemd[1]: Failed to start td-agent: Fluentd based data collector for Treasure Data.

How i can fix it ?