Skip to content

File Management

LMDA Composer supports working with local files on your computer, allowing you to develop scripts outside of LogicModules and manage your own script library.

ExtensionLanguageNotes
.groovyGroovyGroovy scripts
.ps1PowerShellPowerShell scripts
.txtPlain textUses tab language setting

When you open a file, the extension determines the language, syntax highlighting applies automatically, and execution mode defaults to Freeform.


MethodAction
Welcome ScreenClick Open File and select from the system dialog
KeyboardPress Ctrl+K, O / Cmd+K, O
Drag and DropDrag a file onto the LMDA Composer window
Recent FilesClick a file from the recent files list on the welcome screen

Open a saved module folder to restore a previously saved LogicModule with its metadata and portal binding intact.

  • Restore Module Binding — Automatically reconnects to the original portal and module from saved metadata
  • Enable Commit Workflow — Push changes back to LogicMonitor just like a freshly loaded module
  • Load All Scripts — Opens the main script plus any AD scripts or pre-scripts in the folder
MethodAction
KeyboardPress Cmd+K, F to open directly
Actions MenuClick Actions → Open Module Folder in the toolbar
Welcome ScreenClick Open Module Folder on the welcome screen

When you save a portal-bound module to disk, LMDA Composer creates a folder with the following structure:

my-datasource/
├── script.groovy # Main collection script
├── ad-script.groovy # Active Discovery script (if applicable)
├── pre-script.groovy # Pre-script (if applicable)
└── module.json # Module metadata + portal binding

The module.json file contains:

  • Module ID and name
  • Portal hostname and module type
  • Script type mappings
  • Original module metadata for diffing

Track module changes with Git:

  1. Save module to a local folder
  2. Initialize a Git repository: git init
  3. Commit changes as you develop
  4. Push to GitHub/GitLab for backup and collaboration

This provides full version history that LogicMonitor doesn’t offer natively.

  1. Load module from portal using the LogicModule Browser

  2. Save to disk via Actions → Save As or Cmd+K, Shift+S

  3. Initialize Git in the module folder for version tracking

  4. Make changes and commit locally with descriptive messages

  5. Later, open module directory with Cmd+K, F

  6. Push changes back to portal using the Commit button


  1. Click New File on welcome screen, or click + in the tab bar, or press Ctrl+K, N

  2. File opens with your default language setting

  3. Start writing your script (or insert a template from Snippets)

  4. Save with Ctrl+S when ready


Keyboard: Ctrl+S / Cmd+S

First save: Opens a dialog to choose location and filename.

Subsequent saves: File updates in place, no dialog appears, dirty indicator clears.

File save dialog showing location picker

LMDA Composer uses the modern File System Access API for seamless file operations.

BrowserSupportNotes
Chrome Full Support Direct file reading/writing, file handles persist across sessions
Edge Full Support Same capabilities as Chrome
Brave/Vivaldi Requires Setup May need to enable the File System Access API flag

If File System Access is not available in Brave:

  1. Open brave://flags in a new tab

  2. Search for “File System Access API”

  3. Set it to Enabled

  4. Restart your browser

For Vivaldi browser:

  1. Open vivaldi://extensions

  2. Select “LMDA Composer”

  3. Enable “Allow access to file URLs”


LMDA Composer automatically saves drafts to protect your work.

FeatureDescription
How It WorksDrafts saved every 30 seconds to browser local storage. Recovered on next session.
Draft RecoveryIf browser closes unexpectedly, draft recovery dialog appears on next open. Click Restore or Discard.

For supported browsers:

  • File handles saved to session
  • Reopening restores handles
  • Continue editing from where you left off

Handles expire when:

  • Browser is fully closed
  • Permissions are revoked
  • File is moved or deleted

If a handle expires:

  1. File shows as “Unconnected”
  2. Click Reconnect in tab
  3. Select the file again

  • Local files show the filename
  • Unsaved files show “Untitled”
  • Module tabs show module name with link icon

The welcome screen shows recent files with:

  • File name and path
  • Last opened date
  • Language indicator
  • Click to open a recent file
  • Use the remove button to clear items from the list
  • List auto-cleans invalid entries

Configure in Settings:

  • Default: 10 files
  • Range: 5-50 files

  • Organize Your Scripts — Create a folder structure like scripts/production/datasources/ for easy navigation
  • Backup Important Scripts — Save to cloud-synced folders (Dropbox, OneDrive) or use version control (Git)
  • Use Naming Conventions — Use clear names like DS_Linux_CPU_Usage.groovy or PS_Windows_Services.ps1
  1. Create local file

  2. Develop and test script

  3. When ready, copy to module or import as new

  4. Keep local copy as backup