request body:
{
name: "SomeName",
insertionTime: "timeInUtc"
}
query:
requests
| where url contains "/get"
| extend requestBody = parse_json(customDimensions["Request-Body"])
| project requestBody
I want to show the request body with updated timestamp in the results table. like timestamp plus 2 hours.
I want to use this request body with new stamp so that I can retry the same requests again with new timestamp for failed requests. Im trying to build some automation for failed api calls with new timestamp in the request body.
2
Answers
(Assuming that you are aware that you of course cannot update the actual stored data in the table).
In your query you can do any kind of mathematical operations that you like:
You can use the below kql query to achieve the expected results.
As I do not have any results in the given time stamp, I got the below expected output.
You can use pack_array to combine all the results with the name, insertion time as well as new insertion time as detailed in the given MSDoc.