Skip to content

Every log line sent to ES create new index #3951

Answered by fujimotos
flodumi asked this question in Q&A
Discussion options

You must be logged in to vote

And what i see in kibana are a lot of indexes created like this:
odc-dev-new-1970.02.10

This is a logstash-format index. The part YYYY-MM-DD is filled
by Fluentd using the timestamp of each message.

My guess is that you're teaching out_elasticsarch to look at a wrong time field.
Try removing time_key option from your config and see if it works:

<filter kubernetes.**>
  @type stdout
  output_type json
  key_name log
  reserve_time true
  reserve_data true
  remove_key_name_field true
  #time_key time
</filter>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flodumi
Comment options

Answer selected by fujimotos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants