Step 2: Preview data

You can use the Preview feature to visually inspect records as they flow through Decodable. Let’s preview the envoy_raw stream which is receiving data from the connection that you started in the previous step.

  1. From the Streams page, select the envoy_raw. This is the stream that’s receiving data from the datagen_envoy_connection connection.

  2. Select Run Preview. This preview displays a sample of records that are in the stream.

A screenshot showing the results of starting a preview session. align="left"

In this case, you’ll see that this stream contains raw HTTP event logs in JSON format.

{"value":"[2023-11-13T21:20:39Z] \"GET /products/3 HTTP/1.1\" 500 URX 2001 6345 82 32 \"-\" \"Mozilla/5.0 (Windows NT 10.0; Win64; x64)\" \"5c70092a-ed05-4d0c-9d2b-f7bf361ad17e\" \"localhost\" \"192.168.0.11:443\""}
{"value":"[2023-11-13T21:20:38Z] \"DELETE /users/1 HTTP/2.0\" 200 NC 4044 3860 41 39 \"-\" \"Mozilla/5.0 (Linux; Android 10) \" \"5ca9fd79-afee-44db-9352-2ee9949dc6df\" \"aws.gateway\" \"10.0.0.1\""}
{"value":"[2023-11-13T21:20:38Z] \"DELETE /products/2 HTTP/2.0\" 500 UH 3826 8831 14 33 \"-\" \"Mozilla/5.0 (Linux; Android 10) \" \"5f0ae73d-c76b-471f-9458-3efc45128509\" \"aws.gateway\" \"10.0.0.1\""}

Now that we’ve seen the data being generated, we’ll now build a pipeline that transforms the records in this stream into a more human-readable format.