Skip to main content

A package for searching log query language path

Project description

lqlpath

lqlpath is a Python package designed to search for paths in JSON files based on either keys or values. it can be used for log query language like GCP LQL

Features

  • Search by Key: Retrieve a list of field paths in the JSON where a specific key is found.
  • Search by Value: Retrieve a list of field paths in the JSON where a specific value is found. --**Search for bq logs by key #EXAMPLE

from lqlpath import get_byKey,get_byValue

print(get_byKey('bq.json','reservation'))

print(get_byValue('bq.json',"us-central1")) ##the below function search the json fieldpath for bigquery json by key

input parameter

#The following bigquery resouese type supported BIGQUERY_RESOURSE BIGQUERY_PROJECT BIGQUERY_DATASET BIGQUERY_TABLE

bq_get_byKey("BIGQUERY_TABLE","table_id") ['resource.labels.table_id']

output: ['protoPayload.serviceData.jobInsertResponse.resource.jobStatistics.reservation'] ['protoPayload.serviceData.jobInsertResponse.resource.jobName.location']

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

lqlpath-0.1.5.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file lqlpath-0.1.5.tar.gz.

File metadata

  • Download URL: lqlpath-0.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.1

File hashes

Hashes for lqlpath-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9fad02ab5416f9388bed257e09d97d0efed15edfdc03fc71b89da88a03d1ec93
MD5 fe392209aeccf5a4bb2a49b9fdb772c4
BLAKE2b-256 fbb9518f7d22ae9836cb9f59db0c6d820e3ad81ba4753b8dd8df8a37c93d1018

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