PowerShell/demos/json.ps1

11 lines
507 B
PowerShell
Raw Normal View History

# Get-Mongostat
# Get mongodb statistics with parsed JSON
# journalctl is a native tool to emit SystemD's journal, which includes diagnostic info pertaining to SystemD services
# Show-JournalCtl
# Given journalctl parameters, run journalctl with a -o json to emit JSON, e.g. journalctl $Parameters -o json --no-pager
# Return structured data from Journal
# Demo execution
# Show journatcl example
# Using Where & Sort, filter journal output to drill into a specific problem (e.g. service failed to start)