“No tag matched” Warning while using POST on fluentd
up vote
0
down vote
favorite
I was using fluentd and I found out that the example given on the site
http://docs.fluentd.org/articles/install-by-deb was working perfectly using the below curl command.
curl -X POST -d 'json={"json":"message"}'
http://localhost:8888/debug.test
But when I tried to match any other pattern, I found out that even an exact match wasn't working. To my surprise, even the default config file that matches
<match debug.*>
was only working for debug.test and not debug.a (for example)
Here is my conf file:
<match td.*.*>
type tdlog
apikey YOUR_API_KEY
auto_create_table
buffer_type file
buffer_path /var/log/td-agent/buffer/td
<secondary>
type file
path /var/log/td-agent/failed_records
</secondary>
</match>
<match bigquery>
type copy
deep_copy true
<store>
type bigquery
auth_method compute_engine
project my_table
dataset test_db
table LogMessage
auto_create_table true
field_string body,header
# buffer_chunk_limit
# buffer_chunk_records_limit 300
buffer_queue_limit 10240
num_threads 16
# flush_interval 1
buffer_type file
buffer_path /var/log/td-agent/buffer/bq
</store>
<store>
type file
path /var/log/td-agent/bq-logtextmsg.log
</store>
</match>
## match tag=debug.** and dump to console
<match debug.**>
type stdout
</match>
####
## Source descriptions:
##
## built-in TCP input
## @see
http://docs.fluentd.org/articles/in_forward
<source>
type forward
</source>
## built-in UNIX socket input
#<source>
# type unix
#</source>
# HTTP input
# POST
http://localhost:8888/<tag>?json=<json>
# POST
http://localhost:8888/td.myapp.login?json={"user"%3A"me"}
# @see
http://docs.fluentd.org/articles/in_http
<source>
type http
port 8888
</source>
## live debugging agent
<source>
type debug_agent
bind 127.0.0.1
port 24230
</source>
####
## Examples:
##
## File input
## read apache logs continuously and tags td.apache.access
#<source>
# type tail
# format apache
# path /var/log/httpd-access.log
# tag td.apache.access
#</source>
## File input
## File output
## match tag=local.** and write to file
#<match local.**>
# type file
# path /var/log/td-agent/access
#</match>
## Forwarding
## match tag=system.** and forward to another td-agent server
#<match system.**>
# type forward
# host 192.168.0.11
# # secondary host is optional
# <secondary>
# host 192.168.0.12
# </secondary>
#</match>
## Multiple output
## match tag=td.*.* and output to Treasure Data AND file
#<match td.*.*>
# type copy
# <store>
# type tdlog
# apikey API_KEY
# auto_create_table
# buffer_type file
# buffer_path /var/log/td-agent/buffer/td
# </store>
# <store>
# type file
# path /var/log/td-agent/td-%Y-%m-%d/%H.log
# </store>
#</match>