Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service does not report any logs #35

Open
artem-shelkovnikov opened this issue Jul 15, 2024 · 4 comments
Open

Service does not report any logs #35

artem-shelkovnikov opened this issue Jul 15, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@artem-shelkovnikov
Copy link
Member

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.

@artem-shelkovnikov artem-shelkovnikov added the bug Something isn't working label Jul 15, 2024
@seanstory
Copy link
Member

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
Copy link
Member Author

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

@seanstory seanstory added enhancement New feature or request and removed bug Something isn't working labels Jul 16, 2024
@seanstory
Copy link
Member

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
Copy link
Member Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants