Skip to Content
RELEASE & GROWTHLog Service

Log Service

Scope: The log service captures all key information within the system. Currently, it covers actionflow, database access, AI, API, trigger, gateway, deployment, publishing, and GraphQL-related records.

Storage Capacity: Log retention varies by project plan (measured in days):

  • Free Plan: 1 day
  • Basic Plan: 7 days
  • Pro Plan: 30 days

Accessing the Log Service

  1. Access the log service from the “Log Service” section on the project details page.

Log Service entry in project details

  1. Use the following features for efficient log viewing:
  • Log Classification: Filter logs by category.
  • Query Statement Settings: Set time ranges, levels, and customize query syntax for precise retrieval.
  • Bar Chart: Visualize log statistics; click the chart to set time ranges.
  • Log Details: View detailed information; click field values to add them to your query.

Log viewing features

Query Syntax

The log service provides efficient query syntax for flexible and rapid log searches.

  1. Keyword Query: Enter a keyword to find logs containing that term.
    Example: Find all requests related to the “account” table:
    account
  2. Field Query: Specify field values for targeted queries.
    Example: Find logs where requestMethod is POST:
    requestMethod: POST
    For text fields, use wildcards (*) for fuzzy searches.
    Example: Find logs with traceId including 20241024:
    traceId: 20241024*
    Numeric fields support range queries.
    Example: Find logs with responseSize between 5000 and 10000:
    responseSize: [5000 to 10000]
  3. Combined Conditional Queries: Use operators like and, or for complex queries.
    Example: Find logs related to account with status 200:
    account and status: 200
  4. Multi-Level Queries: For nested fields, provide the full path.
    Example: Find logs where requestBody.query contains mutation:
    requestBody.query: mutation*

Log Classification Overview

Actionflow

The log service records the status of each node in the actionflow:

  • Each node generates two logs: one at start and one at end.
  • A log is generated when Context.log() is called in a code block.
  • Node log fields:
FieldDescription
traceIdUsed for event tracking queries
nodeTypeType of the node
nodeNameName of the node
versionVersion of the actionflow
inputNode input, including all referenceable data
outputNode execution result
startAtNode start time
endAtNode end time
  • Node types in logs:
NodeType in Logs
InputFLOW_START
Query RecordQUERY_RECORD
Update RecordUPDATE_RECORD
Insert RecordINSERT_RECORD
Delete RecordDELETE_RECORD
Code BlockCUSTOM_CODE
Add RoleADD_ROLE_TO_ACCOUNT
Remove RoleREMOVE_ROLE_FROM_ACCOUNT
Update Global VarsUPDATE_GLOBAL_VARIABLES
Branch StartBRANCH_SEPARATION
Branch EndBRANCH_MERGE

Database Operations

Records all database operations (add, delete, modify), including:

  1. Trigger method (frontend request, actionflow, AI, etc.)
  2. Operation details

AI

Records the full process of AI conversations, including model type and message details.

API

Records API request details, including headers and body.

Trigger

Records trigger activation time, type, and related information.

Gateway

A gateway connects different networks and forwards data. In Momen, the following requests pass through the gateway:

  1. Requests from the frontend to the backend.
  2. Requests received via Callback.

Logs in this category include most requests (database CRUD, API, AI, etc.).
Note: Only outgoing requests are visible in gateway logs; request results are not shown.

Gateway log example

Deployment and Release

Records details of each backend release, pre-release, and deployment.

GraphQL

All backend requests use GraphQL. For more information, see GraphQL | A query language for your API.

Last updated on