Audit.NET icon indicating copy to clipboard operation
Audit.NET copied to clipboard

Environment object on IIS is just the user running the IIS server

Open fmeira opened this issue 9 years ago • 1 comments

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?

fmeira avatar May 16 '17 08:05 fmeira

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

thepirat000 avatar May 20 '17 04:05 thepirat000