Send-EAIEvents
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”Send-EAIEvents [-Events] <Object[]> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”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.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”$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 $eventParameters
Section titled “Parameters”-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Events
Section titled “-Events”One or more event objects containing cef and enrichments properties.
Type: System.Object[]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: true ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PassThru
Section titled “-PassThru”Returns per-event Edwin API acceptance results.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named 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.