如何在 Splunk 中合并两个查询?

How to combine two queries in Splunk?

我想制作这样的时间表table:

目前我使用两个查询

1.Get交易栏:

sourcetype="mysource" host="myhost" | timechart count span=1h

2.Get transaction_success 列:

sourcetype="mysource" host="myhost" status="2" | timechart count span=1h

然后用 Excel 手动组合它们。

如何只用一个查询来搜索该数据?

我希望 append 应该适用于您的情况。 Query 1 append Query 2

请浏览 splunk 中的以下帖子

https://answers.splunk.com/answers/28621/combine-2-splunk-queries.html

https://answers.splunk.com/answers/182453/how-to-combine-my-two-search-queries-using-join-or.html

https://answers.splunk.com/answers/30909/combine-two-queries-into-a-single-value.html

https://answers.splunk.com/answers/123204/how-to-combine-two-queries-into-one-without-using-eventtypes.html

目前我找到了如何加入查询:

sourcetype="mysource" host="myhost" | timechart count as transaction count(eval(status="2")) as transaction_success span=1h