heka-geoip2-decoder's People
Forkers
robisonheka-geoip2-decoder's Issues
Adding support for other MMDBs
I've put together a moderately-sized rewrite based heavily on this repository that adds support for multiple MMDB formats, as well as the ability to iterate over a list of source_addr_fields in a Heka message. Any interest in a PR submission? Thanks!
GeoIP2 Decoder usage example
Hi there,
i used your instructions and compiled heka with geoip2-decoder plugin. now i am trying to decode the user location based on ip's from nginx access log but I have no success.
Here is my toml file
[Nginx-Webserver-Access]
type = "LogstreamerInput"
log_directory = "/home/guest"
file_match = 'test.log'
decoder = "shipped-nginx-decoder"
[shipped-nginx-decoder]
type = "MultiDecoder"
subs = ['CombinedLogDecoder', 'GeoIp2Decoder']
[CombinedLogDecoder]
type = "SandboxDecoder"
filename = "lua_decoders/nginx_access.lua"
[CombinedLogDecoder.config]
type = "nginx.access"
user_agent_transform = true
combined log format
log_format = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
payload_keep = true
[GeoIp2Decoder]
db_file = "/home/guest/GeoLite2-City.mmdb"
source_host_field = "remote_addr"
target_field_prefix = "geoip"
dns_lookup = false
[ESJsonEncoder]
index = "test-%{2006.01.02}"
es_index_from_timestamp = true
type_name = "%{Type}"
fields = ["Timestamp","Payload","HostName","Fields"]
[LogOutput]
message_matcher = "Type == 'nginx.access'"
encoder = "ESJsonEncoder"
Please let me know if am doing right way.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.