Skip to content

Examples Overview

Welcome to the LogicMonitor PowerShell examples collection. These examples demonstrate common automation tasks and best practices for managing your LogicMonitor environment.

Examples scripts/snippets combining multiple cmdlets

Examples for importing and managing LogicModules, including:

  • JSON and XML imports
  • Field preservation during updates
  • Conflict handling strategies
  • Bulk import operations

Examples for managing devices, including:

  • Bulk device operations
  • Property management
  • Device cleanup and maintenance
  • Device group management

Examples for managing users and access, including:

  • User provisioning
  • Role assignments
  • Access control
  • API token management

Examples for managing resource lifecycles, including:

  • Resource cleanup automation
  • Stale resource detection
  • Automated provisioning/deprovisioning
  • Backup and restore procedures

Examples for managing dashboards, including:

  • Dashboard cloning
  • Widget management
  • Data export
  • Template management

Examples for managing portal settings, including:

  • Alert rule management
  • Collector management
  • Property source management
  • Global settings

Examples for extracting and processing data, including:

  • Alert analysis and reporting
  • Device property extraction
  • Performance metrics collection
  • Custom reporting