Logo
Sign in
  1. Logpoint Service Desk
  2. Products Hub
  3. Marketplace

JSON Parser

Avatar Emil Shrestha
January 03, 2025 05:17
Follow
default.png

JSON Parser

The JavaScript Object Notation (JSON) Parser reads JSON data and extracts key values from the fields with valid JSON field values of normalized logs. A string filter is applied to the provided field, which defines a path for extracting values from it. The filter contains a key, which can be alphanumeric and special characters except square brackets ([]), backtick (`) and tilde (~). These exceptional characters are reserved for essential use cases, such as mapping the list and selecting a condition in JSON Parser.

Release Details
Version: 5.1.1
Release date: Jan 2, 2025
Supported On: Logpoint v7.5.0 and later
Documentation: JSON Parser guide
SHA 256: 7cdbffedd9f0a4028a82ffd1e6c9eed83510f35bc5513d9418ab5f27f27b9e79
Download

 

 

 

 

 

 

 

 

 

Enhancement

Description Issue ID Reference ID
JSON Parser now supports the flatten, reverse, sort, to_entries and unique filters. Go to JSON Parser to learn about these filters and their use cases. SR-251, SR-181 -

 

Installation

To install JSON Parser:

  1. Download the .pak file from the Download link above. 
  2. Go to Settings >> System Settings from the navigation bar and click Applications.
  3. Click Import.
  4. Browse to the downloaded .pak file. 
  5. Click Upload.

Past Releases

JSON Parser v5.1.0

Release Date: May 10, 2024

Supported On: Logpoint v6.7.0 and later

Download: jsonparser_5.1.0.pak

SHA256: b810f76515edccea526e3f72a3e83a83be4da141cd8e6caceb5e08109df12e3e

Enhancements

Description Issue ID Reference ID
JSON Parser now supports negative indexes, enabling the return of the last element of a data set. Go to JSON Parser to learn more.

KB-24349

-

JSON Parser converts a non-JSON value to a list with a single item when dot (.) filter is applied. Go to JSON Parser to view a use case on a non-JSON value.

KB-23968 -

Deprecated Command

JQ Parser is no longer supported. Its functions are migrated to the JSON Parser command.

JSON Parser v5.0.2

Release Date: September 28, 2023

Supported On: Logpoint v6.7.0 and later

Download: jsonparser_5.0.2.pak

SHA256: 645060b76129ae9ebc821bd08b417e858d82e006a3ca8a15b2f7d97570a2c3f4

Usage Information

Example: | process json_parser (evidence, ".@data\.type") as analytics

In filter, the backslash (\) escaped the period (.) before type and this query applies the filter to the evidence field and extracts the key value to the data_type field.

JSONparserUsecase.png

General syntax to use map and select functions: 

| process json_parser(field name, ".[condition]") as field name

Example: | process json_parser (detail, ".[.severity > 50") as listWithSeverityGreaterThan50

In the .[.severity>50] filter, a conditional statement severity>50 is used and this query applies the filter to the detail field and extracts the list of key values with the true condition to the listWithSeverityGreaterThan50 field.

MAPANDSELECT.PNG

JSON Parser v5.0.0

Release Date: March 13, 2023

Supported On: Logpoint v6.7.0 and later

Download: jsonparser_5.0.0.pak

SHA256: 4934645f4817f31e7e86df509d9212f5f6fb99d0ff38276c9ba7ba9a504ed183

Usage Information

Syntax: 

| process json_parser (field name, "filter") as field name

Example: | process json_parser (msg, ".AzureLogAnalytics") as analytics

This query applies the AzureLogAnalytics filter to the msg field and extracts the key values to the analytics field.

Screenshot 2023-02-16 at 1.24.50 PM (1).png

Support

If you have any questions or require assistance, create a support ticket.

 

Comments

Please sign in to leave a comment.

Related articles

  • JSONNormalizer
  • Evaluation Process Plugin
  • Logpoint Agent Collector
  • NXLog Enterprise
  • Aruba
Was this article helpful?
0 out of 0 found this helpful
Privacy policy    EULA    Terms of service   
Copyright © , Logpoint. All rights reserved.

Note: We use cookies that are essential for the smooth functioning of our website.