Skip to content

Instantly share code, notes, and snippets.

@elvisgiv
Last active May 23, 2016 12:50
Show Gist options
  • Save elvisgiv/c2f3b95c29348fa64aa2e4903d65c086 to your computer and use it in GitHub Desktop.
Save elvisgiv/c2f3b95c29348fa64aa2e4903d65c086 to your computer and use it in GitHub Desktop.

#Install kibana ##Development Environment https://www.elastic.co/guide/en/kibana/current/setup.html

To get Kibana up and running:

  • Dwnload the Kibana 4 binary package for your platform. From https://www.elastic.co/downloads/kibana
  • Extract the .zip or tar.gz archive file.
  • Run Kibana from the install directory: bin/kibana (Linux/MacOSX) or bin\kibana.bat (Windows).

Для того, чтобы kibana увидела index_name из elasticsearch нужно сделать mappings dynamic: 'true' и поставить :type => 'date' для :created_at

    index_name "#{Rails.configuration.gex_config[:elasticsearch_prefix]}log_debug"

    settings index: { number_of_shards: 1 } do
      mappings dynamic: 'true' do
        ...some code...
        indexes :created_at,     :index    => :not_analyzed, :type => 'date'
        ...some code...
      end
    end

запускаем kibana из папки, в которую мы ее распаковали комндой /bin/kibana (or bin\kibana.bat on Windows)

далее заходим на http://localhost:5601 и выбираем проиндексированные модели

##Production Environment https://www.elastic.co/guide/en/kibana/current/production.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment