Send an event to a Seq server.
Send-SeqEvent.ps1 [[-Message] <String>] [-Properties] <Object> [-Level <String>] [-Server <Uri>]
[-ApiKey <String>] [-LiteralMessage] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Send-SeqEvent.ps1 'Hello from PowerShell' -Server http://my-seq -LiteralMessage
Send-SeqEvent.ps1 'Event: {User} on {Machine}' @{ User = $env:UserName; Machine = $env:ComputerName } -Server http://my-seq
Send-SeqEvent.ps1 -Properties @{ Message = $Error[0].Exception.Message } -Level Error -Server http://my-seq
The text to use as the log message, a Seq template unless -LiteralMessage is present. By default, the value of the Message property will be used.
Type: String
Parameter Sets: (All)
Aliases: Text
Required: False
Position: 1
Default value: {Message}
Accept pipeline input: False
Accept wildcard characters: False
Logging properties to record in Seq, as an OrderedDictionary, Hashtable, DataRow, or any object with properties to use.
Type: Object
Parameter Sets: (All)
Aliases: Parameters
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The type of event to record. Information by default.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Information
Accept pipeline input: False
Accept wildcard characters: False
The URL of the Seq server.
Type: Uri
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The Seq API key to use.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
When present, indicates the Message parameter is to be used verbatim, not as a Seq template.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.