Skip to content

Commit

Permalink
Update forensics_log_pull.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Angali authored and Naveen Angali committed Nov 18, 2024
1 parent 2cd9da0 commit 76f0028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Azure-ARM/forensics_log_pull.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ while ($SqlDataReader.Read()) {
Message = $SqlDataReader["Message"]
Level = $SqlDataReader["Level"]
TimeStamp = $SqlDataReader["TimeStamp"]
Exception = if ($SqlDataReader["Exception"] -ne $null) { $SqlDataReader["Exception"] } else { "NULL" }
Exception = $SqlDataReader["Exception"]
LogEvent = $SqlDataReader["LogEvent"]
AssemblyName = $SqlDataReader["AssemblyName"]
AssemblyVersion = $SqlDataReader["AssemblyVersion"]
SourceContext = if ($SqlDataReader["LogEvent"] -ne $null) { $SqlDataReader["SourceContext"].ToString() } else { "NULL" }
SourceContext = $SqlDataReader["SourceContext"]
EnvironmentUserName = $SqlDataReader["EnvironmentUserName"]
MachineName = $SqlDataReader["MachineName"]
}
Expand Down

0 comments on commit 76f0028

Please sign in to comment.