Skip to content

Commit 2259800

Browse files
gateway-log.out
1 parent 5e06187 commit 2259800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/ninja-workshops/10-advanced-otel/3-filelog/3-4-test-filelog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Flags: 0
6767
**Verify the gateway has handled the logs**:
6868

6969
1. **Windows only**: Stop the **Agent** and **Gateway** to flush the files.
70-
2. Check if the **Gateway** has written a `./gateway-log.out` file.
70+
2. Check if the **Gateway** has written a `./gateway-logs.out` file.
7171

7272
At this point, your directory structure will appear as follows:
7373

@@ -89,15 +89,15 @@ WORKSHOP
8989
**Examine a log line in `gateway-logs.out`**: Compare a log line with the snippet below. It is a preview showing the beginning and a single log line; your actual output will contain many, many more:
9090

9191
{{% tabs %}}
92-
{{% tab title="cat /gateway-log.out" %}}
92+
{{% tab title="cat /gateway-logs.out" %}}
9393

9494
```json
9595
{"resourceLogs":[{"resource":{"attributes":[{"key":"com.splunk.sourcetype","value":{"stringValue":"quotes"}},{"key":"com.splunk/source","value":{"stringValue":"./quotes.log"}},{"key":"host.name","value":{"stringValue":"[YOUR_HOST_NAME]"}},{"key":"os.type","value":{"stringValue":"[YOUR_OS]"}},{"key":"otelcol.service.mode","value":{"stringValue":"agent"}}]},"scopeLogs":[{"scope":{},"logRecords":[{"observedTimeUnixNano":"1737231901720160600","body":{"stringValue":"2025-01-18 21:25:01 [WARN] - Do or do not, there is no try."},"attributes":[{"key":"log.file.path","value":{"stringValue":"quotes.log"}}],"traceId":"","spanId":""}]}],"schemaUrl":"https://opentelemetry.io/schemas/1.6.1"}]}
9696
{"resourceLogs":[{"resource":{"attributes":[{"key":"com.splunk/source","value":{"stringValue":"./quotes.log"}},{"key":"com.splunk.sourcetype","value":{"stringValue":"quotes"}},{"key":"host.name","value":{"stringValue":"PH-Windows-Box.hagen-ict.nl"}},{"key":"os.type","value":{"stringValue":"windows"}},{"key":"otelcol.service.mode","value":{"stringValue":"agent"}}]},"scopeLogs":[{"scope":{},"logRecords":[{"observedTimeUnixNano":"1737231902719133000","body":{"stringValue":"2025-01-18 21:25:02 [DEBUG] - One does not simply walk into Mordor."},"attributes":[{"key":"log.file.path","value":{"stringValue":"quotes.log"}}],"traceId":"","spanId":""}]}],"schemaUrl":"https://opentelemetry.io/schemas/1.6.1"}]}
9797
```
9898

9999
{{% /tab %}}
100-
{{% tab title="cat `./gateway-log.out` | jq" %}}
100+
{{% tab title="cat `./gateway-logs.out` | jq" %}}
101101

102102
```json
103103
{

0 commit comments

Comments
 (0)