简体   繁体   English

在 Kibana 中输入数据时如何进行操作?

[英]How can i do operations while entering data in Kibana?

I'm trying to import data composed of 10 documents into kibana using dev tools.我正在尝试使用开发工具将由 10 个文档组成的数据导入 kibana。 while doing this I want to edit data by subtracting timestamp between two different documents grouped according to the id.在执行此操作时,我想通过减去根据 id 分组的两个不同文档之间的时间戳来编辑数据。 How can I do this using DevTools in kibana?如何在 kibana 中使用 DevTools 做到这一点?

id         timestamp

1          1592833114

1          1592833192

2          1592833302

2          1592833400

I want this data indexed into elastic search like:我希望将这些数据索引到弹性搜索中,例如:

id  time

1    78 i.e(1592833192 - 1592833114)

2    98 i.e(1592833400 - 1592833302)

It is not possible as it is two different log lines.这是不可能的,因为它是两个不同的日志行。

There are two options you can do.你可以做两种选择。

  1. At the time of ingestion using logstash在使用 logstash 摄取时
  2. You have to change log line to add data in single log line.您必须更改日志行才能在单个日志行中添加数据。

You can refer this , this你可以参考这个这个

I will add few more references.我将添加更多参考。

Please let me know if I need to consider more variables related to this problem.如果我需要考虑与此问题相关的更多变量,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM