Skip to content

Commit 8c04e4f

Browse files
committed
FIXED 308: Added support for searching command line environment info
cmd:app.exe OR cmd:"--myargument"
1 parent fa0b4d9 commit 8c04e4f

File tree

1 file changed

+2
-0
lines changed
  • src/Exceptionless.Core/Repositories/Configuration/Indexes/EventIndex

1 file changed

+2
-0
lines changed

src/Exceptionless.Core/Repositories/Configuration/Indexes/EventIndex/EventIndexType.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public sealed class Alias {
134134
public const string OperatingSystemVersion = "os.version";
135135
public const string OperatingSystemMajorVersion = "os.major";
136136

137+
public const string CommandLine = "cmd";
137138
public const string MachineName = "machine";
138139
public const string MachineArchitecture = "architecture";
139140

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

0 commit comments

Comments
 (0)