I am trying to produce the following output :
| app_name | request_id | time | workload at the time(requests per second) |
| App1 | 123 | 1000 | ? |
| App2 | 1234 | 1000 | ? |
I have two queries that return :
1. A table with the requests taking the most time
| app_name | request_id | time |
| app1 | 1 | 1000 |
2. Numeric value that returns the requests per second for a given app
| app_name | requests per second |
| app1 | 10 |
How can I join the results from two different queries to produce the final table above?
Thank you!
From your simplistic description, all I can suggest is:
search 1
| join app_name [search 2]If this doesn't work, you will need to provide more detail of what you are actually doing
This is what I tried but that does not return any result:
index=myIndex method!=GET process="end" | join app_name [search index=myIndex method!=GET process="start" | timechart count by app_name | timechart per_second(*) ]
| table _time app_name request_id
Try something like this
index=myIndex method!=GET process="end"
| bin _time span=1s
| join _time app_name [search index=myIndex method!=GET process="start"
| timechart span=1s count by app_name
| timechart span=1s per_second(*) as *
| untable _time app_name per_second ]
| table _time app_name request_id per_second
Thank you for the suggestion. I tried that but it returned :
[subsearch]: The specified span would result in too many (>50000) rows.