1.去产品官网下载https://www.elastic.co/downloads/kibana 对应的tar.gz的压缩包,放到/usr/local/src目录
2.解压
tar -xzvf kibana-6.4.-linux-x86_64.tar.gz -C /usr/local
3.进入到config目录下,进行kibana.yml文件配置 配置端口号,服务器地址,es的地址
4.kibana启动
bin目录下
./kibana &
5.test
6.netcore 新建索引
新建控制台项目,引入NEST包
Demo
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 = ,
User = "kimchy",
PostDate = new DateTime(, , ),
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 partner
8.kibana查看