Splunk:如何检查特定日志文件的日志文件大小?
我想检查 Splunk 中特定日志文件的大小。我发现了这个查询:
index=foo* | bin span=1d _time | stats sum(eval(len(_raw))) as TotalSize by _time
我不完全确定这个查询告诉我什么? TotalSite 是字节数吗?
如果不是,有什么方法可以获取这些信息?
I want to check the size of specific logfiles in Splunk. I found this query:
index=foo* | bin span=1d _time | stats sum(eval(len(_raw))) as TotalSize by _time
I am not completely sure what this query tells me? Is TotalSite the number of bytes?
If no, what would be a way to get this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该查询在所有索引的字节中提供了以“ foo”开头的名称(总计)。每天给出一个总数,由UI中选择的时间窗口确定的天数。
That query provides the size in bytes of all of the indexes with names starting with "foo" (in total). One total is given for each day with the number of days determined by the time window selected in the UI.