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

Nginx logs bug #57

Closed
DocEmmetBrown opened this issue Jul 27, 2015 · 4 comments
Closed

Nginx logs bug #57

DocEmmetBrown opened this issue Jul 27, 2015 · 4 comments
Assignees
Labels

Comments

@DocEmmetBrown
Copy link
Contributor

Hi,

I've come with a bug on parsing nginx logs :

I get this error on every nginx log available : ```
./include/functions: line 781: [: /var/log/nginx/<my_log_file>: binary operator expected


in the `include/functions:781`, the ${VALUE} contains "<my_log_file> main" so the -f test cannot return true.

```++ '[' '!' -f /var/log/nginx/<my_log_file> main ']'

Thanx for your help

@d4t4king
Copy link
Contributor

Is this from a fresh pull or clone? I'm not able to reproduce the issue.

@DocEmmetBrown
Copy link
Contributor Author

It's the 2.1.0 version, installed from the official tarball.

my access log line in the nginx conf looks like that :

  access_log  /var/log/nginx/my_access.log main;

@mboelen mboelen added the bug label Jul 28, 2015
@mboelen mboelen self-assigned this Jul 28, 2015
@mboelen
Copy link
Member

mboelen commented Jul 28, 2015

@DocEmmetBrown Please clone latest version into a new directory, run Lynis and see if it still applies.

@DocEmmetBrown
Copy link
Contributor Author

sorry, the latest version seems to fix that bug... my mistake ;)

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

No branches or pull requests

3 participants