Skip to content

Creating LogicModules

The Create LogicModule wizard guides you through building new modules directly from LMDA Composer. Create DataSources, ConfigSources, and other module types without leaving the editor.

RequirementDescription
Portal ConnectionYou must be connected to a LogicMonitor portal with an active session
Write AccessYour account needs permission to create LogicModules in the portal

Access the Create LogicModule wizard from the welcome screen:

  1. Close all tabs or open a new LMDA Composer window to see the welcome screen

  2. Click Create LogicModule in the Quick Start section

  3. The wizard opens with module type selection


Select the type of LogicModule to create:

DataSource

Collect numeric metrics from devices. Supports Active Discovery for multi-instance monitoring.

Enter the module identification:

FieldRequiredDescription
NameYesTechnical identifier (alphanumeric, underscores, hyphens)
Display NameDataSource/ConfigSource/EventSource onlyHuman-readable name shown in UI

Configure the scripting options:

OptionDescription
Script LanguageChoose between Groovy and PowerShell (where supported)
Instance TypeSingle instance or Multi-instance with Active Discovery (DataSource/ConfigSource only)
Batch ScriptEnable batch collection for multi-instance modules
AD LanguageChoose language for Active Discovery script (can differ from collection)

Review your configuration before creating:

  • Module type and name
  • Script language selection
  • Instance type and AD settings
  • Default settings that will be applied

You can optionally create a local directory structure for the new module:

OptionDescription
Initialize Local DirectoryWhen checked, creates a folder with script files on your local disk

This is useful if you want to:

  • Use version control (Git) for your module scripts
  • Have local backups of your work
  • Work offline and sync later

Click Create Module to create the module in your portal.


TypeDisplay NameCollect IntervalAD SupportScript Languages
DataSourceYes1-30 min, 1-24 hoursYesGroovy, PowerShell
ConfigSourceYes1-24 hoursYesGroovy, PowerShell
TopologySourceNo30 min - 12 hoursNoGroovy, PowerShell
PropertySourceNoOn discoveryNoGroovy, PowerShell
LogSourceNo1-30 min, 1-24 hoursNoGroovy only
EventSourceNo1-30 min, 1-24 hoursNoGroovy only
DiagnosticSourceNoOn-demandNoGroovy, PowerShell

Each module type is created with sensible defaults:

SettingDefault Value
exitCode DatapointA default datapoint that captures the script exit code
Collection Interval5 minutes
AppliesTofalse() (won’t match any resources until configured)
SettingDefault Value
RetrievalCheckA config check that alerts when configuration cannot be retrieved
Collection Interval1 hour
AppliesTofalse() (won’t match any resources until configured)
SettingDefault Value
Resource MappingDefault log fields and resource mapping configuration
Collection Interval5 minutes
AppliesTofalse() (won’t match any resources until configured)
SettingDefault Value
Alert LevelWarning
Effective Interval60 minutes
Schedule30 minutes
AppliesTofalse() (won’t match any resources until configured)

Once the module is created:

  1. The module opens in a new tab, bound to your portal

  2. Edit the collection script in the main editor

  3. Use Module Details to configure metadata, datapoints, or config checks

  4. Test your script with the Run button

  5. Commit changes to save back to LogicMonitor

  6. Optionally, save to a module directory for local development


Common causes of creation failures:

ErrorSolution
Module name already existsChoose a unique name
Permission deniedCheck your LogicMonitor role permissions
API errorVerify portal connection and try again