Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I separate customDimensions in trackEvent log? #2153

Open
madebymt opened this issue Sep 18, 2023 · 1 comment
Open

Can I separate customDimensions in trackEvent log? #2153

madebymt opened this issue Sep 18, 2023 · 1 comment

Comments

@madebymt
Copy link

Is your feature request related to a problem? Please describe.
I am using this trackEvent to log my app event, but anything in properties show up in the log is a object not a separate columns, so it's easier for us to track the data.

Thank you!

appInsights.trackEvent({
  name: 'some event',
  properties: { // accepts any type
    prop1: 'string',
    prop2: 123.45,
    prop3: { nested: 'objects are okay too' }
  }
});

Here's the CSV I export form appInsight --> Transaction search ---> view log ---> Export
Screenshot 2023-09-18 at 3 12 39 PM

Describe the solution you'd like
I want each object field to be their own column

Additional context
Add any other context or screenshots about the feature request here.

Version I use:
@microsoft/applicationinsights-web: "^3.0.0",

@johncrim
Copy link

johncrim commented Dec 8, 2023

You can use project or extend KQL operators to flatten, select, and rename the properties you want, before exporting to CSV.

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/get-started-queries#use-project-and-extend-to-select-and-compute-columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants