mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Limit per_service query to transaction documents (#143138)
This commit is contained in:
parent
4ec846cac4
commit
d260172a0b
1 changed files with 5 additions and 2 deletions
|
@ -1159,13 +1159,16 @@ export const tasks: TelemetryTask[] = [
|
|||
name: 'per_service',
|
||||
executor: async ({ indices, search }) => {
|
||||
const response = await search({
|
||||
index: [indices.metric],
|
||||
index: [indices.transaction],
|
||||
body: {
|
||||
size: 0,
|
||||
timeout,
|
||||
query: {
|
||||
bool: {
|
||||
filter: [{ range: { '@timestamp': { gte: 'now-1h' } } }],
|
||||
filter: [
|
||||
{ range: { '@timestamp': { gte: 'now-1h' } } },
|
||||
{ term: { [PROCESSOR_EVENT]: ProcessorEvent.transaction } },
|
||||
],
|
||||
},
|
||||
},
|
||||
aggs: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue