Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
How to store logs in MongoDB

I am using Fluentd data collector for storing Apache httpd logs in MongoDB. I made the necessary changes in td-agent configuration files like:

<source>
  @type tail

  format apache2

  path C:\Program Files (x86)\Apache Group\Apache2\logs\access.log

  tag mongo.apache
 </source>

and

<match mongo.**>
  # plugin type

  @type mongo

  # mongodb db + collection

  database apache

  collection access


  # mongodb host + port

  host localhost

  port 27017


  # interval

  flush_interval 10s

  # make sure to include the time key

  include_time_key true

</match>

After doing all necessary changes, I tested configurations by pinging Apache server

ab -n 100 -c 10 http://localhost/

Everything works fine, but the logs files were not stored in MongoDB.

I did this in windows.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!