elastic / data-extraction-service

Other
9 stars 1 forks source link

Service does not report any logs #35

Open artem-shelkovnikov opened 4 months ago

artem-shelkovnikov commented 4 months ago

Bug Description

Running service from a docker image I see no logs when content is extracted at all. Can I do anything about it?

To Reproduce

Steps to reproduce the behavior:

  1. Configure a Google Drive connector and set use_extraction_service to true
  2. Run Data Extraction Service in docker
  3. Run a sync and check logs for Data Extraction Service
  4. No logs are displayed at all

Expected behavior

Logs are displayed about requests received.

seanstory commented 4 months ago

Logs for the service are written to files, see: https://github.com/elastic/data-extraction-service?tab=readme-ov-file#logging

So you can run a docker exec command to tail those, or SSH into the container to tail them.

artem-shelkovnikov commented 4 months ago

Can we also pipe the logs into stdout so that I'm able to just docker logs <id>?

seanstory commented 4 months ago

I suppose we could investigate it. We don't have many (any?) logs for the lua nginx logic that's actually "ours". And I'd feel a bit odd about further exposing the tika logs, since we don't want to support "tika", but our service. Maybe the answer really is to just have more logging in our lua code?

I've re-labeled as an enhancement.

artem-shelkovnikov commented 4 months ago

I'd say it would help to see nginx logs for endpoints:

called /subextract: 200 OK called /subextract: 500 INTERNAL SERVER ERROR