So In my logs I have transaction_id
, processing_time
, page_id
and action done on page action_id
processing time is per action.
I need to show a trend of actions/pages for which daily average processing_time
is continuously increasing over a selected time period.
Please guide,
Hi @reverse,
You're looking for something like this :
... | chart avg(processing_time) values(transaction_id) as transaction_id, values(action_id) as action_id by _time span=1d
You can play around with the span if needed.
More info about using chart
command here :
https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/Chart
Cheers,
David
Hi @reverse,
You're looking for something like this :
... | chart avg(processing_time) values(transaction_id) as transaction_id, values(action_id) as action_id by _time span=1d
You can play around with the span if needed.
More info about using chart
command here :
https://docs.splunk.com/Documentation/Splunk/7.2.6/SearchReference/Chart
Cheers,
David
it is showing only 1 entry avg(processing_time and all pages listed in single row against a date ..
transaction_id is not relevant here .. page_id is ...
2019-05-18 187.80
A
B
C
D
E
I
oh so you want to have your page_id
as "by" for the chart ? I thought it's just the _time
I am trying to find out pages which are deteriorating over time..
each page has actions ..
page_id
has multiple action_id
(which makes data 3d) and there is also individual transaction processing time for each action on every page..
okay so from what you're saying, the three dimensions are page_id
that contains action_id
and we need the avg processing_time
for each of the action_id
:
... | chart avg(processing_time) by transaction_id ,action_id
You can also add the time using the bucket
command and a span..in this case 1hour :
... |bucket span=1h _time | stats avg(processing_time) by transaction_id ,action_id,_time
this worked !.. i replaced transaction_id with page_id
put your other question in another question and post the link here lol I don't really understand this one 😄
Since data is in multiple rows by_time. .. I need the difference of last time and first time a nd then top 10 .. so that top 10 slow pages can be identified. Simple
hahah you're welcome ! plz up vote the comments and answer and accept and let me see for your next question
thanks for your help!!!!!! Now .. more complexity ..
there are 250 pages .. each page has minimum 3 actions ...
I want to show only those results (pages\action combo) for which daily average processing time has increased lets say by 10 % ... or to make it simple ... top 10 worst performing results (pages\action combo) since the start of time range .. example .. comparing today with 7th day before [last 7 days]..
this is really complex...
..as if it is showing avg of all pages