Skip to main content
ComponentsEngine
Availability2014.1 or later

Configuration

Archive schedule and paths

Safety and Validation

Preview files before deleting
Automate File Archiving GermainUX can archive files automatically on a configured schedule. For example, an Executor component can compress log files older than a specified number of days, move the archives to another location, and remove the original files after successful archival. Executor components can run commands locally or through a remote GermainUX Engine. Their output can also be processed by a Drools rule when additional analysis, validation, or data extraction is required.

Configuration

1 Step 1: Create a Local Executor Component

Create a component of type Local Executor and configure the archive command.
File Archiving: 1 Step 1: Create a Local Executor Component
The following example:
  • Searches the source directory.
  • Selects files matching the configured filename pattern.
  • Selects files older than the retention period.
  • Compresses each file as a .tar.gz archive.
  • Moves the archive to the target directory.
  • Removes the original file only after the archive has been created and moved successfully.

Deployment References

Configure the following values as references when deploying the component: FilePattern uses shell wildcard matching rather than a regular expression.

Example Values

This example archives matching log files more than 14 days old.

2 Step 2: Deploy the Component

Deploy the Local Executor component to the required GermainUX Engine:
  • Select the target Monitoring Node and Engine.
  • Configure the deployment references.
  • Set the execution interval.
  • Deploy the component.
  • Run it manually once to validate the configuration.
  • Confirm that the archives were created and moved successfully.
  • Enable the recurring schedule. File Archiving: 2 Step 2: Deploy the Component

Safety and Validation

This automation deletes source files after successful archival. Before enabling the schedule:
  • Confirm that SourceLocation and TargetLocation resolve to the intended directories.
  • Confirm that the target directory exists and is writable.
  • Test the filename pattern with find before enabling deletion.
  • Use a nonproduction directory for the first test.
  • Confirm that generated archives can be opened.
  • Verify available disk space in both locations.
  • Ensure that no application still requires access to the selected files.
  • Run the Engine under an account with only the permissions required for this task.
To preview the files that would be selected without modifying them, run:

Get Help

Contact GermainUX Support

The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

Can't find what you need?

Search all GermainUX docs with Ctrl + K, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.