@@ -38,7 +38,7 @@ public LinuxContainerEventGenerator(IEnvironment environment, Action<string> wri
38
38
39
39
public static string DetailsEventRegex { get ; } = $ "{ ScriptConstants . LinuxFunctionDetailsEventStreamName } (?<AppName>[^,]*),(?<FunctionName>[^,]*),\\ \\ \" (?<InputBindings>.*)\\ \\ \" ,\\ \\ \" (?<OutputBindings>.*)\\ \\ \" ,(?<ScriptType>[^,]*),(?<IsDisabled>[0|1])";
40
40
41
- public static string AzureMonitorEventRegex { get ; } = $ "{ ScriptConstants . LinuxAzureMonitorEventStreamName } (?<Level>[0-6]),(?<ResourceId>[^,]*),(?<OperationName>[^,]*),(?<Category>[^,]*),(?<RegionName>[^,]*),(?<Properties>[^,]*),(?<ContainerName>[^,\" ]*),(?<TenantId>[^,\" ]*),(?<EventTimestamp>[^,]+)";
41
+ public static string AzureMonitorEventRegex { get ; } = $ "{ ScriptConstants . LinuxAzureMonitorEventStreamName } (?<Level>[0-6]),(?<ResourceId>[^,]*),(?<OperationName>[^,]*),(?<Category>[^,]*),(?<RegionName>[^,]*),\" (?<Properties>[^,]*)\" ,(?<ContainerName>[^,\" ]*),(?<TenantId>[^,\" ]*),(?<EventTimestamp>[^,]+)";
42
42
43
43
private string StampName
44
44
{
@@ -104,7 +104,7 @@ private void ConsoleWriter(string evt)
104
104
105
105
public override void LogAzureMonitorDiagnosticLogEvent ( LogLevel level , string resourceId , string operationName , string category , string regionName , string properties )
106
106
{
107
- _writeEvent ( $ "{ ScriptConstants . LinuxAzureMonitorEventStreamName } { ( int ) ToEventLevel ( level ) } ,{ resourceId } ,{ operationName } ,{ category } ,{ regionName } ,{ properties } ,{ _containerName } ,{ TenantId } , { DateTime . UtcNow . ToString ( ) } ") ;
107
+ _writeEvent ( $ "{ ScriptConstants . LinuxAzureMonitorEventStreamName } { ( int ) ToEventLevel ( level ) } ,{ resourceId } ,{ operationName } ,{ category } ,{ regionName } ,{ NormalizeString ( properties ) } ,{ _containerName } ,{ TenantId } ,{ DateTime . UtcNow . ToString ( ) } ") ;
108
108
}
109
109
}
110
110
}
0 commit comments