Skip to content

Commit

Permalink
FIXED 308: Added support for searching command line environment info
Browse files Browse the repository at this point in the history
cmd:app.exe OR cmd:"--myargument"
  • Loading branch information
niemyjski committed Sep 3, 2017
1 parent fa0b4d9 commit 8c04e4f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public sealed class Alias {
public const string OperatingSystemVersion = "os.version";
public const string OperatingSystemMajorVersion = "os.major";

public const string CommandLine = "cmd";
public const string MachineName = "machine";
public const string MachineArchitecture = "architecture";

Expand Down Expand Up @@ -238,6 +239,7 @@ private static PropertiesDescriptor<DataDictionary> AddEnvironmentInfoMapping(th
.Text(f3 => f3.Name(r => r.IpAddress).CopyTo(fd => fd.Field(EventIndexType.Alias.IpAddress)).Index(false).IncludeInAll())
.Text(f3 => f3.Name(r => r.MachineName).RootAlias(EventIndexType.Alias.MachineName).IncludeInAll().Boost(1.1).AddKeywordField())
.Text(f3 => f3.Name(r => r.OSName).CopyTo(fd => fd.Field(EventIndexType.Alias.OperatingSystem)))
.Text(f3 => f3.Name(r => r.CommandLine).RootAlias(EventIndexType.Alias.CommandLine))
.Keyword(f3 => f3.Name(r => r.Architecture).RootAlias(EventIndexType.Alias.MachineArchitecture))));
}

Expand Down

0 comments on commit 8c04e4f

Please sign in to comment.