JSON Flex Options Reference

A list of the JSON Flex options in object groups and views

Object Group Features

ChaosSearch object grouping features give administrators more insight and control over how to select and flatten their JSON source files (pre-indexing).

JSON Flex Object Group Options OptionDescription
Default Object Group Array Expansion: Horizontal or VerticalYou can specify whether to use Horizontal or Vertical expansion for the arrays in the JSON file to choose more compact storage of indexed data versus more visibility of JSOn fields for filtering and data analysis aggregations. See JSON Log Flattening Example for a general example of horizontal and vertical expansion effects.
Flattening Level: None, 1-10, Unlimited You can choose to expand all arrays (Unlimited), none of the arrays, or only the arrays at or above a specified level of 1 to 10. Any arrays below the specified level are stored and indexed as a JSON string value.
Column selection options: array_selection_policyArray selection controls allow you to specify only the arrays that you want to index (whitelist) or to index all arrays except specific ones (blacklist). This option provides a finer control on the indexing of arrays, reducing the indexed data storage footprint and also the distraction of fields that are not useful for analysis tasks, all without changing or re-pipelining the source JSON files.
Column selection options: vertical_selection_policyThe vertical selection policy allows administrators to apply vertical expansion rules to specific arrays when the group itself defaults to horizontal expansion for all arrays. That is, with JSON Flex, you can use horizontal expansion for the indexing storage advantages, but for specific arrays that are better suited for vertical expansion, you can selectively apply vertical expansion where needed during indexing.
Column selection options: field_selection_policy

For nested JSON objects (not arrays), the field selection policy gives you a finer control over which nested objects to index as separate properties, or to index as a JSON string blob. The nested properties to stringify can be selected using a blacklist of their property names or using a regex rule to use regular expressions to select the properties to process as JSON strings.

Refinery View Features

Chaos Refinery® features help to prepare user-ready views with the valuable columns for querying and analytics. Refinery views can also use several transformation options to extract information from the indexed data.

JSON Flex Refinery View OptionsDescription
JSON Array TransformationFor arrays that are indexed with horizontal expansion, the JSON Array Transformation window allows you to selectively apply a virtual vertical expansion of that array within the Refinery view. That is, the selected array and its fields will be materialized as columns for use as filter controls and for aggregation analysis like with the view.
Materialize with JSONPathFor columns that contain a JSON string value, you can specify a JSON Path value to identify a field and its values, and to transform that field into a materialized column that can be used for filtering or simple aggregations like Count, Min, and Max. You can define multiple materialized fields for a JSON string field.
Treat as Nested JSONFor columns that contain JSON string data with nested arrays or nested objects, you can transform that field to one that supports Elastic nested query path values, using either the Search Analytics > Discover feature, or the Elastic API.


Another Look at JSON Flex

For a closer look at how a simple nested JSON file can quickly inflate with expansion operations, see the ChaosSearch blog: The New Best Way to Index and Query JSON Logs.