Skip to main content
Solved

How I can Parse Array of array in cribl stream. Each array element contains multiple strings.

  • March 11, 2025
  • 3 replies
  • 97 views

How I can Parse Array of array in cribl stream. Each array element contains multiple strings.

Best answer by Jon Rust

True is not a valid javascript object, unless you're referring a variable named True that you have defined elsewhere.

Using an Eval function with JSON.parse worked as expected with your example array, once True was replaced with true

875_0c0e3e6440c04322878a5aa4aaf04aeb.png

3 replies

Jon Rust
Forum|alt.badge.img
  • Employee
  • March 11, 2025

A sample of the data would be super helpful. Normally the Parser command would do the job. You can also use JSON.parse(field)in an Eval field definition.


  • Author
  • New Participant
  • March 11, 2025

Hey @Jon Rust , thank you so much for your response ,this is the format of data (shown below)that we are getting. We are getting this data from azure blob storage.

2D array of strings


[ ["some fields","some more fields" , 5,null ],["some fields","some more fields" , True,null,false,"",""],[],[],……….,[] ]

Please suggest feasible solution as I am pretty much stucked.


Jon Rust
Forum|alt.badge.img
  • Employee
  • Answer
  • March 11, 2025

True is not a valid javascript object, unless you're referring a variable named True that you have defined elsewhere.

Using an Eval function with JSON.parse worked as expected with your example array, once True was replaced with true

875_0c0e3e6440c04322878a5aa4aaf04aeb.png