Convert-EAIEvent
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”Convert-EAIEvent [-InputObject] <Object> [-PropertyMap] <hashtable> [[-SeverityMap] <hashtable>] [[-DefaultEventSource] <string>] [<CommonParameters>]Description
Section titled “Description”Convert-EAIEvent maps arbitrary input objects to Edwin CEF payloads using a property map. Map values can be source property names or scriptblocks for computed values.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”$data | Convert-EAIEvent -PropertyMap @{ event_ci = 'HostName' event_name = 'AlertTitle' event_description = 'Details' event_object = 'Component' event_severity = 'Severity' event_source = { 'VendorX' }}Parameters
Section titled “Parameters”-DefaultEventSource
Section titled “-DefaultEventSource”Optional default event_source value when not mapped.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 3 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-InputObject
Section titled “-InputObject”The third-party object to convert.
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: true ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PropertyMap
Section titled “-PropertyMap”Hashtable mapping CEF field names to source property names or scriptblocks.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SeverityMap
Section titled “-SeverityMap”Optional hashtable mapping vendor severity aliases to Edwin severity names or values.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 2 IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.