< Back

Set-GraylogSidecarConfigFile

Tue Jan 14, 2020 12:21 am

NAME Set-GraylogSidecarConfigFile



SYNOPSIS

Update the current sidecar configuration.





SYNTAX

Set-GraylogSidecarConfigFile [[-ServerUrl] <String>] [[-ServerApiToken] <String>] [[-NodeName] <String>]

[<CommonParameters>]





DESCRIPTION

Write the specified properties to the configuration file sidecar.yml.

Only specified parameters will be updated. Not specififed parameters

will not be touched.





PARAMETERS

-ServerUrl <String>

Target Graylog server url.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ServerApiToken <String>

Target Graylog API token.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NodeName <String>

The target node name.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-GraylogSidecarConfigFile -NodeName $Env:ComputerName



Update only the node name.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-GraylogSidecarConfigFile -NodeName $Env:ComputerName -ServerUrl 'https://graylog.contoso.com/api/'

-ServerApiToken 'yb34rs6w9nmd6p5y3x2a4kk6a7n8q9p9w7d5us4de3l2ahg'



Update all properties: ServerUrl, ServerApiToken and NodeName.











RELATED LINKS