Skip to main content

NSML++: Neuro-Symbolic Memory Lattice for Intelligent Log Parsing

Project description

NSMLParser (Neuro-Symbolic Memory Lattice Parser)

NSMLParser is a lightweight, intelligent log parser designed to extract structured key-value fields from unstructured logs using a hybrid of fuzzy matching, positional reasoning, and heuristic inference. It includes:

  • Fuzzy key correction
  • Backfilled value inference
  • Canonical semantic mapping
  • Confidence scoring
  • Lightweight tokenizer (no spaCy or heavy dependencies)

Features

  • ✅ Intelligent tokenization and parsing
  • ✅ Fuzzy matching for variant key names (case_number, casenumcaseNumber)
  • ✅ Heuristic inference for misplaced or missing key-value pairs
  • ✅ Positional backtracking for unstructured logs
  • ✅ Confidence scoring per field
  • ✅ Designed to work without external APIs or heavyweight NLP libraries

Example

from nsml_parser import NSMLParser

parser = NSMLParser()

log = """Running HTTPS_PROXY='http://proxy.net:8080' /opt/radar/bin/apprise -consumers "FUNNYTEAM_AUDIT" -cluster "POD109" -product "blah-base" -sp "KP" -dc "MM" -caseNumber -release "rrrrr" -event "ERROR_RUNNING_PLSQL_TARGET" -eventTime "2023-06-09_04:31:04" -stage "some issue here" -status "FAILED" -type "ERROR" -source "ops0-release2-2-RR" "123456" --message "something" """

result = parser.parse(log)

print(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsml_parser-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nsml_parser-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file nsml_parser-0.1.0.tar.gz.

File metadata

  • Download URL: nsml_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for nsml_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a95aa6cd52589f2a9c70c01848d493d82d410c7aa8dee6bdd44d20e0d130e9e7
MD5 40645d21e1b9175a2a1ffd02ed336778
BLAKE2b-256 72d3c2cfda79fe465e3edfae2a91ee34c25bff98922c0422ff476460fcb3b26e

See more details on using hashes here.

File details

Details for the file nsml_parser-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nsml_parser-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for nsml_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 436b373c541c5d7a29bbe31fb203427ad3d4654912473b65197686c3717af292
MD5 35d7929fb9dc128a47b9ea4caab6ba6f
BLAKE2b-256 67ffbcc66f069208bcff71f24e50fedb733b145094873f815c8033283289f3d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page