1.去產品官網下載https://www.elastic.co/downloads/kibana 對應的tar.gz的壓縮包,放到/usr/local/src目錄node
2.解壓linux
tar -xzvf kibana-6.4.0-linux-x86_64.tar.gz -C /usr/local
3.進入到config目錄下,進行kibana.yml文件配置 配置端口號,服務器地址,es的地址服務器
4.kibana啓動spa
bin目錄下.net
./kibana &
5.testcode
6.netcore 新建索引blog
新建控制檯項目,引入NEST包索引
Democi
using Nest; using System; namespace els { class Program { static void Main(string[] args) { var node = new Uri("http://10.2.2.139:9200/"); var settings = new ConnectionSettings(node); var client = new ElasticClient(settings); var tweet = new Tweet { Id = 2, User = "kimchy", PostDate = new DateTime(2009, 11, 15), Message = "Trying out NEST, so far so good?" }; var response = client.Index(tweet, idx => idx.Index("test")); //or specify index via settings.DefaultIndex("mytweetindex"); } } class Tweet { public int Id { get; set; } public string User { get; set; } public DateTime PostDate { get; set; } public string Message { get; set; } } }
7.kibana新建index partnerget
8.kibana查看