Code Monkey home page Code Monkey logo

nginx-log-zmq's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nginx-log-zmq's Issues

openresty/nginx does not recognize zmq directives

I want to build this module with openresty.

My commands look exactly like the instructions:

./configure --add-module=../nginx-log-zmq-master
make
make install

However, when running nginx with any zmq directive like log_zmq_server, nginx aborts on start:

$ /usr/local/openresty/bin/openresty
> 2018/11/03 21:06:06 [emerg] 1#0: unknown directive "log_zmq_server" in /usr/local/openresty/nginx/conf/nginx.conf:13

I am sure that the compiling itself works, because the logs show that it was compiled correctly, and it reported an error before because of missing dependencies (libzmq3-dev):

adding module in /openresty-1.13.6.1/../nginx-log-zmq-master
checking for ZeroMQ library ... found
 + ngx_http_log_zmq_module was configured
[...]

The full log output is available at https://paste.ee/p/BCdf6.

My dockerfile:

FROM ubuntu:xenial

RUN apt-get -y update \
  && apt-get -y upgrade \
  && apt-get install -y \
  libpcre3 \
  libpcre3-dev \
  libssl-dev \
  libperl4-corelibs-perl \
  libzmq3-dev \
  g++ \
  cmake \
  unzip \
  wget \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/openresty/openresty/releases/download/v1.13.6.1/openresty-1.13.6.1.tar.gz \
  && wget https://github.com/alticelabs/nginx-log-zmq/archive/master.zip \
  && unzip master.zip \
  && rm master.zip \
  && tar -xvf openresty-1.13.6.1.tar.gz \
  && rm openresty-1.13.6.1.tar.gz \
  && cd openresty-1.13.6.1/ \
  && ./configure --add-module=../nginx-log-zmq-master -j2 \
  && make -j2 \
  && make install \
  && cd .. \
  && rm -r openresty-1.13.6.1 \
  && rm -r nginx-log-zmq-master

# connect stdout & stderr
RUN ln -sf /dev/stdout /usr/local/openresty/nginx/logs/access.log \
  && ln -sf /dev/stderr /usr/local/openresty/nginx/logs/error.log

COPY cmd.sh /usr/bin/cmd.sh
RUN chmod +x /usr/bin/cmd.sh

# copy configs
COPY *.conf /usr/local/openresty/nginx/conf/
COPY *.lua /usr/local/openresty/nginx/lua/

CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]

Any suggestion is appreciated. I also tried with an older version which is officially supported, namely v1.5.12.1.

Tag a release

According to the readme, this module is production ready. If so, can you please create a release โ€“ tag a version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.