Skip to main content
Solved

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

  • Mar 11, 2025 3:10 AM UTC
  • 3 replies
  • 302 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
View original

3 replies

Jon Rust
Forum|alt.badge.img
  • Employee
  • Mar 11, 2025 4:52 AM UTC

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
  • Mar 11, 2025 4:52 AM UTC

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
  • Mar 11, 2025 4:52 AM UTC

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