Skip to main content
Glama
serialize.json4.37 kB
{ "id": "serialize", "schema": { "title": "", "type": "object", "required": ["type"], "properties": { "type": { "title": "Type", "description": "Data output format", "type": "string", "enum": ["csv", "elff", "clf", "kvp", "json", "delim"], "enumNames": [ "CSV", "Extended Log File Format", "Common Log Format", "Key=Value Pairs", "JSON Object", "Delimited values" ], "default": "csv" }, "delimChar": {}, "quoteChar": {}, "escapeChar": {}, "nullValue": {}, "fields": { "title": "Fields to serialize", "description": "Required for CSV, ELFF, CLF, and Delimited values. All other formats support wildcard field lists. Examples: host, array*, !host *", "type": "array", "items": { "type": "string" } }, "srcField": { "title": "Source field", "description": "Field containing object to serialize. Leave blank to serialize top-level event fields.", "type": "string" }, "dstField": { "title": "Destination field", "description": "Field to serialize data to", "type": "string", "default": "_raw" } }, "dependencies": { "type": { "oneOf": [ { "properties": { "type": { "enum": ["kvp"] }, "cleanFields": { "type": "boolean", "default": false, "title": "Clean fields", "description": "Clean field names by replacing non-[a-zA-Z0-9] characters with _" }, "fields": { "title": "Fields to serialize", "description": "Required for CSV, ELFF, and CLF. All other formats support wildcard field lists. Examples: host, myField, !source *", "type": "array", "items": { "type": "string" }, "default": ["!_*", "!cribl_breaker", "*"] }, "pairDelimiter": { "type": "string", "title": "Pair delimiter", "minLength": 1, "description": "Delimiter used to separate key=value pairs. Defaults to a single space character. Should not have common characters with key-value delimiter." }, "keyValueDelimiter": { "type": "string", "title": "Key-Value delimiter", "minLength": 1, "description": "Delimiter used to separate key and value in pair. Defaults to a '='. Should not have common characters with pair delimiter.", "default": "=" } } }, { "properties": { "type": { "enum": ["delim"] }, "delimChar": { "type": "string", "default": ",", "title": "Delimiter", "minLength": 1, "description": "Delimiter character to use to split values. If left blank, will default to ','." }, "quoteChar": { "type": "string", "default": "\"", "title": "Quote char", "minLength": 1, "description": "Character used to quote literal values. If left blank, will default to '\"'." }, "escapeChar": { "type": "string", "default": "\\", "title": "Escape char", "minLength": 1, "description": "Escape character used to escape delimiter or quote character. If left blank, will default to the Quote char." }, "nullValue": { "type": "string", "default": "-", "title": "Null value", "description": "Field value representing the null value. Null fields will be omitted." } } }, { "properties": { "type": { "enum": ["csv", "elff", "clf", "json"] } } } ] } } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/atree1023/snc-cribl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server