Skip to content

Send-EAIEvents

Terminal window
Send-EAIEvents [-Events] <Object[]> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

Send-EAIEvents posts one or more Common Event Format (CEF) payloads to Edwin. Use this cmdlet for custom third-party event data. LogicMonitor alerts are already sent to Edwin natively.

Terminal window
$event = @{
cef = @{
event_ci = 'server01'
event_object = 'CPU'
event_source = 'Meraki'
event_name = 'High CPU'
event_description = 'CPU above threshold'
event_severity = 4
event_time = (Format-EAIEventTime -DateTime (Get-Date))
event_id = [guid]::NewGuid().ToString()
event_domain = ''
source_record = @{ device = 'server01' }
class = 'event'
version = '1.1'
}
enrichments = @{}
}
Send-EAIEvents -Events $event

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

One or more event objects containing cef and enrichments properties.

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

Returns per-event Edwin API acceptance results.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
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.