I am thrilled to announce the release of version 7.0 of the Logic.Monitor PowerShell module, our community-driven tool designed to streamline interactions with the LogicMonitor REST API. This major update introduces several key enhancements aimed at improving usability and functionality.
What's New in Version 7.0
Comprehensive Documentation Overhaul
We've launched a new, comprehensive documentation site to serve as your go-to resource for all things related to the Logic.Monitor module. The site features:
- Detailed Command References: In-depth information on each cmdlet, including syntax, parameters, and examples.
- Code Examples and Snippets: Practical examples to help you understand and implement various functionalities.
- Best Practices Guides: Recommendations and strategies to optimize your use of the module.
Explore the new documentation here: Logic.Monitor PowerShell Module Documentation.
Introducing the Filter Wizard
Version 7.0 introduces the Filter Wizard, an interactive tool designed to simplify the creation of complex filters. Key features include:
- Visual Filter Construction: Build filters using an intuitive, user-friendly interface.
- Support for All Filter Operators: Utilize a comprehensive set of operators to refine your queries.
- Real-Time Filter Preview: Instantly see the results of your filter criteria as you build them.
You can access the Filter Wizard through the Build-LMFilter cmdlet or by using the -FilterWizard parameter with compatible cmdlets:
# Use the standalone filter builder
Build-LMFilter
# Use built-in filter wizard parameter
Get-LMDeviceGroup -FilterWizard
Community Collaboration
The Logic.Monitor PowerShell module is a testament to the power of community collaboration. Developed and maintained by LogicMonitor employees & users, it embodies the collective expertise and dedication of our community. While not an official LogicMonitor product, this open-source project thrives on user contributions. We warmly invite you to participate by reporting issues, suggesting enhancements, or contributing code via our GitHub repository: Logic.Monitor GitHub Repository.
Getting Started
To install or update to the latest version of the Logic.Monitor module, use the following PowerShell command:
Install-Module -Name "Logic.Monitor" -Force
Authentication
Before using any module commands, you need to connect to your LogicMonitor portal. You have two options for authentication:
Direct Connection (LMv1|BearerToken)
Connect-LMAccount -AccessId "your_access_id" -AccessKey "your_access_key" -AccountName "your_portal"
Connect-LMAccount -BearerToken "your_bearer_token" -AccountName "your_portal"
Using Cached Credentials
The Logic.Monitor module includes built-in credential caching to simplify managing multiple portal connections. Using Microsoft’s SecretManagement module, you can securely store and access your LogicMonitor credentials without repeatedly entering them.
How It Works
When you first use the credential caching feature, you’ll be prompted to set up a secure local vault by creating a password. This vault safely stores your LogicMonitor portal credentials, allowing quick and secure access across multiple sessions.
- First, cache your credentials:
New-LMCachedAccount -AccessId "your_access_id" -AccessKey "your_access_key" -AccountName "your_portal"
- Then connect using cached credentials:
Connect-LMAccount -UseCachedCredential
# Select from multiple cached portals
Enter the number for the cached credential you wish to use:
0) production-portal
1) staging-portal
This approach:
- Securely stores multiple portal credentials
- Eliminates the need to handle sensitive information in scripts
- Provides a simple selection interface for multiple portals
- Leverages industry-standard encryption via SecretManagement
We are committed to continually enhancing the Logic.Monitor module and its documentation. Your feedback is invaluable to us; please share your thoughts and suggestions through our GitHub repository.
Thank you all for your ongoing support and contributions to the Logic.Monitor community.
