azure-application-insights

Read JSON output from AppInsights in C#

与世无争的帅哥 提交于 2020-08-27 21:22:45
问题 I want to read AppInsights API output in C# console application. WebClient wc = new WebClient(); wc.BaseAddress = "https://api.applicationinsights.io/v1/apps/AppInsighID/query?query=requests|where timestamp>= ago(1h)|limit 100"; wc.Headers.Add("Host", "api.applicationinsights.io"); wc.Headers.Add("x-api-key", "key"); string json = wc.DownloadString(""); JObject jsonObject = JObject.Parse(json); //With this, i got values for Rows var rowsObject = jsonObject["tables"][0]["rows"]; Now values are

Search on INFO level Azure Function Logs

ε祈祈猫儿з 提交于 2020-08-10 19:39:04
问题 Taking cue from here - https://stackoverflow.com/questions/63125857/azure-function-container-audit/63131294#63131294 I am logging which user accessed which file and at what time. I see that it is now working fine. Now I want to search that log message to identify a given filename was accessed by which user(s) ? Is this feasible? Is there any Splunk like mechanism I could use. I tried using Application Insights but it doesn't search on INFO message or may be I am not doing it correctly. Please

Search on INFO level Azure Function Logs

…衆ロ難τιáo~ 提交于 2020-08-10 19:38:52
问题 Taking cue from here - https://stackoverflow.com/questions/63125857/azure-function-container-audit/63131294#63131294 I am logging which user accessed which file and at what time. I see that it is now working fine. Now I want to search that log message to identify a given filename was accessed by which user(s) ? Is this feasible? Is there any Splunk like mechanism I could use. I tried using Application Insights but it doesn't search on INFO message or may be I am not doing it correctly. Please

Application Insights: Analytics - how to extract string at specific position

你离开我真会死。 提交于 2020-07-20 07:24:06
问题 I'd like to do, Extracting "query" strings where param=1 as follows in "2." Getting pageViews in Analytics with table as "3." 1. Actual urls included in pageView https://example.com/dir01/?query=apple&param=1 https://example.com/dir01/?query=apple&param=1 https://example.com/dir01/?query=lemon+juice&param=1 https://example.com/dir01/?query=lemon+juice&param=0 https://example.com/dir01/?query=tasteful+grape+wine&param=1 2. Value expected to extract apple lemon+juice tasteful+grape+wine 3.