ELK中fieldname和fieldname.raw之间的区别?(Difference between fieldname and fieldname.raw in ELK?)
在网络上的一些资源之后,我一直在尝试使用ELK堆栈。 但是我没有发现任何明显的资源,可以清楚地解释
fieldname
和fieldname.raw
之间的区别,这个区域名称为fieldname
。在这种情况下没有什么可尝试的,但我确实尝试过搜索,但没有运气。 我对此的唯一主要理解是形成Kibana窗口(我不知道如何重现,遗憾地)说:
fieldname
是一个分析字段。 没有关于fieldname.raw
信息我注意到的另一件事是,当我在Kibana4 Discover中使用
fieldname.raw: "value"
,它显示的结果比我看到的fieldname: "value"
更少。 由于我分别从这些输入中获得了559和554个结果,所以我看不出哪些丢失了。我在猜测后缀
.raw
说明它的含义 - 它可能是来自日志本身的一个字段,无需Logstash的干预。 但我想确定这是否意味着什么。 如果是这样,那么在一个分析领域,我是如何(也是更重要的是,为什么?)得到较少的结果? 有什么Logstash不正确或者是某种错误配置? 任何指针赞赏。I have been experimenting with ELK stack for a while now following a few resources on the web. But I didn't find any significant resource that clearly explains the difference between
fieldname
andfieldname.raw
for a field with say namefieldname
.There is nothing much to try in this context but I did try and search this but no luck. The only primary understanding that I have on this is form Kibana window (which I don't know how to reproduce, sadly) that said:
fieldname
is an analyzed field. There was not such info regardingfieldname.raw
One other thing I noticed is that when I use
fieldname.raw: "value"
in the Kibana4 Discover it shows little more results than what I seefieldname: "value"
. I could not see which ones were missing since I had 559 and 554 results form these inputs, respectively.I am guessing the suffix
.raw
says what it means - It might be a field from the logs itself without any intervention by Logstash. But I want to make sure if that is what it means. If so, then how (and more importantly, why?) did I get less results in an analyzed field? Is there anything that Logstash isn't doing right or is it some kind of misconfiguration? Any pointers are appreciated.
原文:https://stackoverflow.com/questions/31440011
最满意答案
Rollup.js 在这里记录了一个选项。
感谢Rollup GitHub页面上的Olsonpm
Rollup.js has an
outro
option documented here.Thanks to Olsonpm on the Rollup GitHub page
相关问答
更多-
问题在于汇总构建。当我运行npm时运行build.prod.rollup.aot上面的错误开始出现。但我修复了问题。问题在于命名导出。 leaflet-src.js没有导出所需的模块。所以我在project.config.ts中添加了名为exports的缺失内容。 this.ROLLUP_NAMED_EXPORTS = [ ...this.ROLLUP_NAMED_EXPORTS, {'node_modules/leaflet/dist/leaflet.js': [ 'leafle ...
-
module是一个具有exports属性的纯JavaScript对象。 module.exports是一个简单的JavaScript变量,恰好设置为module.exports 。 在文件的最后,node.js将基本上' module.exports到require函数。 在Node中查看JS文件的简化方法可以是: var module = { exports: {} }; var exports = module.exports; // your code return module.exports; ...
-
设置module.exports允许在required时像一个函数一样调用database_module函数。 只需设置exports将不允许导出该函数,因为节点导出对象module.exports引用。 以下代码不允许用户调用该函数。 module.js 以下将不起作用。 exports = nano = function database_module(cfg) {return;} 如果module.exports设置,以下操作将会起作用。 module.exports = exports = nan ...
-
require(...)从该模块返回module.exports 。 这通常是一个对象,但它也可以是其他任何东西(通常是函数),就像模块只导出一个函数一样。 这样做没有任何问题 - module.exports只是一个普通的对象(很可能是像module.exports = {};代码中某处运行模块的js文件的内容“ require(...) returns module.exports from that module. This is usually an object, but it can also ...
-
尝试使用“as”作为所有导入的首字母缩写词 import * as util from './util'; export {util}; Try to use "as" as acronym for all imports import * as util from './util'; export {util};
-
您的代码中存在多个错误。 module.exports = getSqlSafeString; 将export设置为getSqlSafeString 。 当你require("./sqlString.js")你将获得分配给exports的值,因此在你的情况下是getSqlSafeString 。 因此,如果您想访问该功能,您可以写: const getSqlSafeString = require("./sqlString.js"); //... return getSqlSafeString(query) ...
-
Rollup.js 在这里记录了一个选项。 感谢Rollup GitHub页面上的Olsonpm Rollup.js has an outro option documented here. Thanks to Olsonpm on the Rollup GitHub page
-
从命令行使用rollup.js时有没有监视选项(Is there a watch option when using rollup.js from the command line)[2022-12-29]
从v0.29开始,您可以使用rollup --watch 。 不,还没有( 命令行选项 )。 昨天就出现了一个问题 。 Rich-Harris写道: 同意。 我们打算在增量构建中添加一些功能( #191 ),这将与此同时进行。 目标是增量构建的内容足够灵活,可以与现有的构建系统集成,但我认为CLI开箱即可支持它是有意义的: rollup -c --watch As of v0.29 you can use rollup --watch. No there is not yet (command line ... -
因为你已经将d3-scale指定为外部模块,如果你的bundle被包含为 ......告诉Rollup关于d3 : impor ...
-
Rollup不会连接JavaScript文件; 它将一组ES2015模块转换为功能相同的单个脚本。 在大多数其他语言中,ES2015模块的功能与模块不同(当然不像C / C ++ #include s!), 我建议在这里阅读它们。 如果要导入常规JavaScript文件,则必须将其转换为ES2015模块,该模块可以使用Rollup插件自动完成。 例如,这是一个糟糕的通用解决方案,但你可以在rollup.config.js中放置这样的东西: import replace from 'rollup-plugin ...