Skip to content

Update New-AzOperationalInsightsLinuxSyslogDataSource.md #9852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/OperationalInsights/OperationalInsights/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-->
## Upcoming Release
* Fixed miscellaneous typos across module
* Updated documentation for `New-AzOperationalInsightsLinuxSyslogDataSource`
- Added example
- Updated description for `-Name` parameter
* Added an example for New-AzOperationalInsightsWindowsEventDataSource
* Changed the description of the -Name parameter for New-AzOperationalInsightsWindowsEventDataSource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,46 @@ Azure Operational Insights can collect syslog data.

## EXAMPLES

### Example 1: Create syslog data sources
```
$FacilityNames = @()
$FacilityNames += 'auth'
$FacilityNames += 'authpriv'
$FacilityNames += 'cron'
$FacilityNames += 'daemon'
$FacilityNames += 'ftp'
$FacilityNames += 'kern'
$FacilityNames += 'mail'
$FacilityNames += 'syslog'
$FacilityNames += 'user'
$FacilityNames += 'uucp'
$ResourceGroupName = 'MyResourceGroup'
$WorkspaceName = 'MyWorkspaceName'

$Count = 0
foreach ($FacilityName in $FacilityNames) {
$Count++
$null = New-AzOperationalInsightsLinuxSyslogDataSource `
-ResourceGroupName $ResourceGroupName `
-WorkspaceName $WorkspaceName `
-Name "Linux-syslog-$($Count)" `
-Facility $FacilityName `
-CollectEmergency `
-CollectAlert `
-CollectCritical `
-CollectError `
-CollectWarning `
-CollectNotice `
-CollectDebug `
-CollectInformational
}

Get-AzOperationalInsightsDataSource `
-ResourceGroupName $ResourceGroupName `
-WorkspaceName $WorkspaceName `
-Kind 'LinuxSyslog'
```

## PARAMETERS

### -CollectAlert
Expand Down Expand Up @@ -203,7 +243,7 @@ Accept wildcard characters: False
```

### -Name
Specifies a name for the data source.
Specifies a name for the data source. The name is not exposed in the Azure Portal and any string can be used as long as it is unique.

```yaml
Type: System.String
Expand Down