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"))

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

##the below function search the json fieldpath for bigquery json logs by key

#The following bigquery resouese type supported #BIGQUERY_RESOURCE #BIGQUERY_PROJECT #BIGQUERY_DATASET #BIGQUERY_TABLE

bq_get_byKey("BIGQUERY_TABLE","table_id")

output: ['resource.labels.table_id']

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.7.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

lqlpath-0.1.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lqlpath-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 11630a57dce7be3070b6c8bc21855dd1101a54a91b8a7d0dc06866442e93ebe1
MD5 9a46aeac0b828297de27d5ef996f2b2f
BLAKE2b-256 6939544db98bc10e32975791c61f5734f1dba84fa86aad05f4617aa0890a5ab2

See more details on using hashes here.

File details

Details for the file lqlpath-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: lqlpath-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.1

File hashes

Hashes for lqlpath-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e176c10c2182fb58cbb098c1df32666d47c1f1c460df8ab2347bf7457d61b819
MD5 6c650778c9d634216556ac934f250266
BLAKE2b-256 6d402ef358239380ae37a938bcd401908c1bbe65d5945c4cb7c982143a485308

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