You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manage-data/ingest/ingesting-data-from-applications/ingest-logs-from-nodejs-web-application-using-filebeat.md
# Ingest logs from a Node.js web application using Filebeat
14
13
15
-
This guide demonstrates how to ingest logs from a Node.js web application and deliver them securely into an {{ech}} or {{ece}} deployment. You'll do that by using Filebeat and the Filestream input. You’ll run a simple Node.js server that emits ECS-formatted JSON logs, forward them securely to {{cloud}}, and explore them in Kibana.
14
+
This guide demonstrates how to ingest logs from a Node.js web application and deliver them securely into an {{ech}} or {{ece}} deployment. You'll do that by using Filebeat and the Filestream input. You’ll run a simple Node.js server that emits ECS-formatted JSON logs, forward them securely to {{ecloud}}, and explore them in Kibana.
16
15
17
16
While Node.js is used for this example, this approach to monitoring log output is applicable across many client types. Check the list of [available ECS logging plugins](ecs-logging://reference/intro.md#_get_started).
18
17
@@ -61,7 +60,7 @@ To connect to, stream data to, and issue queries, you need to think about authen
61
60
62
61
## Create a Node.js web application with ECS-formatted logs [ec-node-logs-create-server-script]
63
62
64
-
Next, create a basic Node.js script that runs a web server and logs HTTP requests.
63
+
First, create a basic Node.js script that runs a web server and logs HTTP requests.
65
64
66
65
:::::{stepper}
67
66
@@ -437,7 +436,7 @@ output.elasticsearch:
437
436
438
437
## Send the Node.js logs to Elasticsearch [ec-node-logs-send-ess]
439
438
440
-
It's time to send some log data into {{es}}! Follow these steps to start the data pipeline and verify that your logs are successfully ingested.
439
+
It's time to send some log data into {{es}}. Follow these steps to start the data pipeline and verify that your logs are successfully ingested.
441
440
442
441
:::::{stepper}
443
442
@@ -478,7 +477,7 @@ Run the Node.js `webrequests.js` script to send random requests to the Node.js w
478
477
node webrequests.js
479
478
```
480
479
481
-
Let the script run for a few minutes and maybe brew up a quick coffee or tea ☕ . After that, make sure that the *log.json* file is generated as expected and is populated with several log entries.
480
+
Let the script run for a few minutes. After that, make sure that the *log.json* file is generated as expected and is populated with several log entries.
482
481
483
482
::::
484
483
@@ -530,7 +529,7 @@ You can now visualize your log data using Lens:
530
529
8. Save your dashboard and watch events update in real time.
531
530
532
531
::::{tip}
533
-
If logs stop appearing, verify that the log file exceeds 1 KB — the Filestream input only fingerprints files once they reach that size. Refer to [File identity and fingerprinting](beats://reference/filebeat/how-filebeat-works.md#_file_identity_and_fingerprinting) for more details.
532
+
If logs stop appearing, verify that the log file exceeds 1 KB — the Filestream input only fingerprints files once they reach that size.
0 commit comments