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

Typo in path?? #94

Closed
chucky2305 opened this issue Oct 22, 2018 · 3 comments
Closed

Typo in path?? #94

chucky2305 opened this issue Oct 22, 2018 · 3 comments

Comments

@chucky2305
Copy link

chucky2305 commented Oct 22, 2018

Is there a typo in the path? I added "comments" in the code examples

docker-compose.yml

elk:
        image: willdurand/elk
        ports:
            - "81:80"
        volumes:
            // Either this has to be /var/www/symfony/var/log 
            - ./logs/symfony:/var/www/symfony/var/logs:cached

logstash.conf

input {
  file {
    type => "nginx_access"
    path => "/var/log/nginx/symfony_access.log"
    start_position => beginning
  }
  file {
    type => "symfony_dev"
   // or this has to be /var/www/symfony/var/logs/dev.log
    path => "/var/www/symfony/var/log/dev.log"
    start_position => beginning
  }
  file {
    type => "symfony_prod"
    path => "/var/www/symfony/var/log/prod.log"
    start_position => beginning
  }
}
@eko
Copy link
Owner

eko commented Oct 22, 2018

Hello @chucky2305,

You’re right, the path hasn’t be updated with Symfony 4 new directory name. Can you create a PR to fix it or do you want me to do it?

Thank you!

@chucky2305
Copy link
Author

chucky2305 commented Oct 22, 2018 via email

@eko
Copy link
Owner

eko commented Oct 23, 2018

Hello,

This part is strange and I think it’s specific to your environment because it works for me. Moreover, I am using willdurand/elk Image and it lives in its space, without any link on any other service of this repository.

Maybe you could have a look on elk’s repisotory issues?

@eko eko closed this as completed in e98c781 Oct 28, 2018
eko added a commit that referenced this issue Oct 28, 2018
Fixes log directory (without "s") when using Symfony4 (fix #94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants