{
  "x402Version": 2,
  "id": 35475,
  "slug": "35475",
  "resource": "https://logfilter.hectichustle.workers.dev/filter",
  "description": "Filter a JSON/NDJSON event log by field/operator/time range; returns matching events. Use when an agent needs to pull matching rows (thresholds, equality, substring, threshold crossings, time windows) out of a log or metrics event list. Body: {events:[...]|\"<ndjson>\", filter:{field,op,value?,direction?,timeField?,from?,to?,limit?}}. Ops: gt,gte,lt,lte,eq,ne,contains,crosses_threshold. Free demo at POST /demo; docs at /openapi.json.",
  "type": "http",
  "serviceName": "x402 Log Filter",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x509E55c4F898B43C856Fb0E51048B1b7bFBC9eDE",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "counts": {
            "properties": {
              "inTimeRange": {
                "type": "integer"
              },
              "input": {
                "type": "integer"
              },
              "matched": {
                "type": "integer"
              },
              "returned": {
                "type": "integer"
              },
              "truncated": {
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "events": {
            "description": "Matching events, original order",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "events",
          "counts"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "events": [
              {
                "cpu": 40,
                "timestamp": "2026-01-01T00:00:00Z"
              },
              {
                "cpu": 95,
                "timestamp": "2026-01-01T00:01:00Z"
              }
            ],
            "filter": {
              "field": "cpu",
              "op": "gt",
              "value": 90
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "counts": {
              "inTimeRange": 2,
              "input": 2,
              "matched": 1,
              "returned": 1,
              "truncated": false
            },
            "events": [
              {
                "cpu": 95,
                "timestamp": "2026-01-01T00:01:00Z"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "events": {
                    "description": "Array of event objects, or an NDJSON string (one JSON object per line)",
                    "type": [
                      "array",
                      "string"
                    ]
                  },
                  "filter": {
                    "properties": {
                      "direction": {
                        "description": "crosses_threshold only (default both)",
                        "enum": [
                          "up",
                          "down",
                          "both"
                        ],
                        "type": "string"
                      },
                      "field": {
                        "description": "Dot path into each event, e.g. metrics.cpu",
                        "type": "string"
                      },
                      "from": {
                        "description": "Inclusive lower time bound; ISO-8601, epoch s or ms",
                        "type": [
                          "string",
                          "number"
                        ]
                      },
                      "limit": {
                        "description": "Max events returned",
                        "minimum": 0,
                        "type": "integer"
                      },
                      "op": {
                        "enum": [
                          "gt",
                          "gte",
                          "lt",
                          "lte",
                          "eq",
                          "ne",
                          "contains",
                          "crosses_threshold"
                        ],
                        "type": "string"
                      },
                      "timeField": {
                        "description": "Event time field (default timestamp)",
                        "type": "string"
                      },
                      "to": {
                        "description": "Exclusive upper time bound",
                        "type": [
                          "string",
                          "number"
                        ]
                      },
                      "value": {
                        "description": "Comparison value; numeric threshold for crosses_threshold"
                      }
                    },
                    "required": [
                      "field",
                      "op"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "events",
                  "filter"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "counts": {
                    "properties": {
                      "inTimeRange": {
                        "type": "integer"
                      },
                      "input": {
                        "type": "integer"
                      },
                      "matched": {
                        "type": "integer"
                      },
                      "returned": {
                        "type": "integer"
                      },
                      "truncated": {
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "events": {
                    "description": "Matching events, original order",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "events",
                  "counts"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "logs",
    "observability",
    "json",
    "ndjson",
    "filter",
    "bazaar"
  ],
  "sourceHost": "logfilter.hectichustle.workers.dev",
  "lastUpdated": "2026-10-11T22:49:28.764Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T22:49:28.483Z"
  },
  "metadata": {
    "serviceName": "x402 Log Filter",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "events": [
                {
                  "cpu": 40,
                  "timestamp": "2026-01-01T00:00:00Z"
                },
                {
                  "cpu": 95,
                  "timestamp": "2026-01-01T00:01:00Z"
                }
              ],
              "filter": {
                "field": "cpu",
                "op": "gt",
                "value": 90
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "counts": {
                "inTimeRange": 2,
                "input": 2,
                "matched": 1,
                "returned": 1,
                "truncated": false
              },
              "events": [
                {
                  "cpu": 95,
                  "timestamp": "2026-01-01T00:01:00Z"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "events": {
                      "description": "Array of event objects, or an NDJSON string (one JSON object per line)",
                      "type": [
                        "array",
                        "string"
                      ]
                    },
                    "filter": {
                      "properties": {
                        "direction": {
                          "description": "crosses_threshold only (default both)",
                          "enum": [
                            "up",
                            "down",
                            "both"
                          ],
                          "type": "string"
                        },
                        "field": {
                          "description": "Dot path into each event, e.g. metrics.cpu",
                          "type": "string"
                        },
                        "from": {
                          "description": "Inclusive lower time bound; ISO-8601, epoch s or ms",
                          "type": [
                            "string",
                            "number"
                          ]
                        },
                        "limit": {
                          "description": "Max events returned",
                          "minimum": 0,
                          "type": "integer"
                        },
                        "op": {
                          "enum": [
                            "gt",
                            "gte",
                            "lt",
                            "lte",
                            "eq",
                            "ne",
                            "contains",
                            "crosses_threshold"
                          ],
                          "type": "string"
                        },
                        "timeField": {
                          "description": "Event time field (default timestamp)",
                          "type": "string"
                        },
                        "to": {
                          "description": "Exclusive upper time bound",
                          "type": [
                            "string",
                            "number"
                          ]
                        },
                        "value": {
                          "description": "Comparison value; numeric threshold for crosses_threshold"
                        }
                      },
                      "required": [
                        "field",
                        "op"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "events",
                    "filter"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "counts": {
                      "properties": {
                        "inTimeRange": {
                          "type": "integer"
                        },
                        "input": {
                          "type": "integer"
                        },
                        "matched": {
                          "type": "integer"
                        },
                        "returned": {
                          "type": "integer"
                        },
                        "truncated": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "events": {
                      "description": "Matching events, original order",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "events",
                    "counts"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "logfilter.hectichustle.workers.dev",
    "manifest_name": "logfilter.hectichustle.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "counts": {
        "inTimeRange": 0,
        "input": 0,
        "matched": 0,
        "returned": 0,
        "truncated": true
      },
      "events": [
        {}
      ]
    },
    "type": "string"
  }
}