Skip to content

Commit

Permalink
fix #87 hostname shouldn't be written in server.IP field (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
serdarkalayci committed Nov 16, 2020
1 parent 6b6264b commit ecb5b58
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Elastic.CommonSchema.Serilog/LogEventConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ private static Server GetServer(LogEvent e, IEcsTextFormatterConfiguration confi

var hasHost = e.TryGetScalarPropertyValue(SpecialKeys.Host, out var host);
server.Address = hasHost ? host.Value.ToString() : null;
server.Ip = hasHost ? host.Value.ToString() : null;
return server;
}

Expand Down

0 comments on commit ecb5b58

Please sign in to comment.