Add HTTP logging to a NodeJS application

Add HTTP logging to a NodeJS application
Your assignment for this week is to add HTTP logging to a NodeJS application (the one you created in my demo video). You will feed that logging to your ELK stack.
You are to build 1 visualization of the data using any logging parameters. For example, you might have a pie chart or you might have a line graph. You will put the visualization on a dashboard.
Steps:1. Install the ELK server in your AWS environment.
Search for “ami-01172c9bc29e6c3a0″ – Bitnami v6 of ELK in the AWS Marketplace when you create a new EC2 instance.
Select a t3a.medium for your instance type
Follow the steps to obtain the password for your new ELK server (Bitnami Steps (Links to an external site.))
Configure the security group attached to the ELK server to allow ports 9200 and 9300
2. Configure your NodeJS application to send HTTP logs (Helpful Link: winston-elasticsearch (Links to an external site.))
Install winston-elasticsearch on your web application server that we built in our demo, use this command to install an older version
npm i –save [email protected]
In your winston.js file, you will need to complete the following steps:
Declare the following variable Elasticsearch = require(‘winston-elasticsearch’)
Add the following code right before var logger = winston.createLogger….
var esTransportOpts = {level: ‘debug’,clientOpts: {host: [{host: ”,protocol: ‘http’,port: ‘9200’}]}};
Add the following transport line to the var logger transports: [ section
new Elasticsearch(esTransportOpts)
3. Visit your “Hello World” website and refresh the page multiple times (you will want to visit it a LOT of times, even better if you can do it over multiple days). Visit your ELK server to see if there are any new logs available to import into the Kibana dashboard.4. You will turn in the IP address to your application and the SSH key that allows the instructor to connect for grading your code. You will also provide the IP address for your ELK server so the instructor can view your dashboard visualizations.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code DALE