Skip to content

Instantly share code, notes, and snippets.

View davux's full-sized avatar

David Ammouial davux

View GitHub Profile

Keybase proof

I hereby claim:

  • I am davux on github.
  • I am davux (https://keybase.io/davux) on keybase.
  • I have a public key ASAFxqVzzJxNbdDJtJF09qND9xXx0cGZA767ZtWYKIzdmQo

To claim this, I am signing this object:

@davux
davux / kibana.rb
Created July 31, 2015 23:02
Chef recipes to create a daily index pattern in ES for Kibana 4.1.1, and declare that index as the default one
http_request "create_daily_index_pattern" do
url 'http://localhost:9200/.kibana/index-pattern/%5Blogstash-%5DYYYY.MM.DD'
action :put
headers ({ "Content-Type" => "application/json" })
message ({ :title => "[logstash-]YYYY.MM.DD",
:timeFieldName => "@timestamp",
:intervalName => "days",
}.to_json)
end