Project

als

0.0
No commit activity in last 3 years
No release in over 3 years
This is a POC of Envoy ALS Server, only do inspect for each received message
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0

Runtime

~> 1.22
 Project Readme

Envoy ALS Server in Ruby

TL;DR

$ make

# From another tab, if you don't have envoy in your local, you can try https://getenvoy.io.
# Make sure you have the correct IP where your logger service is running.
$ envoy -c config.example.yaml

# Another tab, the last one (call the envoy proxy, the listener is on port :10000):
$ curl localhost:10000

# In the first tab you will see something like:
{"identifier":{"node":{"buildVersion":"bf169f9d3c8f4c682650c5390c088a4898940913/1.11.0/clean-getenvoy-af8a2e7/RELEASE/BoringSSL"},"logName":"ok"},"httpLogs":{"logEntry":[{"commonProperties":{"downstreamRemoteAddress":{"socketAddress":{"address":"127.0.0.1","portValue":58277}},"downstreamLocalAddress":{"socketAddress":{"address":"127.0.0.1","portValue":10000}},"startTime":"2019-08-12T04:41:28.003240000Z","timeToLastRxByte":"0.000151880s","timeToFirstUpstreamTxByte":"0.040410133s","timeToLastUpstreamTxByte":"0.040427674s","timeToFirstUpstreamRxByte":"0.343800671s","timeToLastUpstreamRxByte":"0.344012068s","timeToFirstDownstreamTxByte":"0.343967255s","timeToLastDownstreamTxByte":"0.344229634s","upstreamRemoteAddress":{"socketAddress":{"address":"172.217.27.36","portValue":443}},"upstreamCluster":"service_google"},"protocolVersion":"HTTP11","request":{"requestMethod":"GET","scheme":"https","authority":"www.google.com","path":"/","userAgent":"curl/7.62.0","requestId":"89831d79-5f6c-460f-a345-1cf04d497d40","requestHeadersBytes":"186","requestHeaders":{}},"response":{"responseCode":302,"responseHeadersBytes":"432","responseBodyBytes":"327","responseHeaders":{},"responseTrailers":{},"responseCodeDetails":"via_upstream"}}]}}

License

MIT