Skip to content

Convert-EAIEvent

Terminal window
Convert-EAIEvent [-InputObject] <Object> [-PropertyMap] <hashtable> [[-SeverityMap] <hashtable>]
[[-DefaultEventSource] <string>] [<CommonParameters>]

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.

Terminal window
$data | Convert-EAIEvent -PropertyMap @{
event_ci = 'HostName'
event_name = 'AlertTitle'
event_description = 'Details'
event_object = 'Component'
event_severity = 'Severity'
event_source = { 'VendorX' }
}

Optional default event_source value when not mapped.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The third-party object to convert.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Hashtable mapping CEF field names to source property names or scriptblocks.

Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Optional hashtable mapping vendor severity aliases to Edwin severity names or values.

Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.