3CX icon

3CX

Interact with 3CX telephony system

Actions462

Overview

This node updates the logging settings of a system, specifically controlling whether logs are kept, for how many days they are retained, and the level of logging detail. It is useful in scenarios where you want to manage log data retention policies or adjust the verbosity of logs for troubleshooting or auditing purposes.

Practical examples include:

  • Enabling or disabling log retention to save storage space.
  • Setting the number of days to keep logs before automatic deletion.
  • Adjusting the logging level to capture more detailed information during debugging or reduce noise in production environments.

Properties

Name Meaning
Keep Logs Boolean flag indicating whether logs should be retained (true) or not (false).
Keep Logs Days Number specifying how many days logs should be kept before being deleted or purged.
Logging Level Number representing the verbosity or detail level of logging (e.g., error, info, debug).

Output

The node outputs JSON data reflecting the updated logging settings after the operation completes. This typically includes confirmation of the applied settings such as the current state of "Keep Logs," "Keep Logs Days," and "Logging Level."

No binary data output is expected from this node.

Dependencies

  • Requires an API key credential for authentication with the target system's API.
  • The node sends HTTP requests to the configured base URL endpoint of the system managing the logging settings.
  • Proper configuration of the API endpoint URL and authentication credentials within n8n is necessary.

Troubleshooting

  • Common issues:

    • Incorrect or missing API credentials can cause authentication failures.
    • Providing invalid values for properties (e.g., negative numbers for "Keep Logs Days") may result in errors.
    • Network connectivity problems to the API endpoint will prevent updating settings.
  • Error messages and resolutions:

    • Authentication failed: Verify that the API key or token is correctly set up and has sufficient permissions.
    • Invalid input data: Check that all property values conform to expected types and ranges.
    • Network timeout or unreachable host: Ensure the server URL is correct and accessible from the n8n environment.

Links and References

  • Refer to the official documentation of the target system’s API for details on logging settings endpoints and accepted parameters.
  • General best practices for logging management: https://en.wikipedia.org/wiki/Log_management

Discussion