Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

213
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda