Audit.NET
Audit.NET copied to clipboard
Environment object on IIS is just the user running the IIS server
I'm running Audit.NET on an API deployed in IIS. The environment data for each call that gets audited is always the same and pretty much of no value, as follows:
"Environment": {
"UserName": "DotNet Core",
"MachineName": "HOFFELL",
"DomainName": "IIS APPPOOL",
"CallingMethodName": "SomeController.Get()",
"AssemblyName": "Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"Culture": "is-IS"
},
Is it possible to pass in more useful information, and how to achieve it, related to the user that is calling the api?
If you are using the Audit.WebApi extension, you should see meaningful information on the output.
You can add information by creating a Custom Action and/or registering your own DataProvider