Git Product home page Git Product logo

graylog-content-pack-haproxy-json's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I do DevOps automation and optimization things at Ringcentral.
  • ๐Ÿ’ฌ Ask me about microservices, automations, deployments, and infra.
  • โšก Here's my current setup.
  • ๐Ÿ˜ Love Zero-config
  • โœจ Simple is beautiful, less is more
  • ๐Ÿฆฅ Write less, do more

graylog-content-pack-haproxy-json's People

Contributors

hariom282538 avatar

Stargazers

 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

graylog-content-pack-haproxy-json's Issues

haproxy_statusCode not correctly pared

Hi, install went well, many thanks, but the haproxy_statusCode from the following line is not parsed sucessfully:

funk haproxy[26784]: {haproxy_clientIP:193.174.118.209,haproxy_clientPort:51222,haproxy_dateTime:27/Nov/2018:21:44:43.568,haproxy_frontendNameTransport:fe_whs_mail~,haproxy_backend:be_WebMail,haproxy_serverName:mail.koellers.net,haproxy_Tw:0,haproxy_Tc:5,haproxy_Tt:444,haproxy_bytesRead:1425,haproxy_terminationState:--,haproxy_actconn:1,haproxy_FrontendCurrentConn:1,haproxy_backendCurrentConn:0,haproxy_serverConcurrentConn:0,haproxy_retries:0,haproxy_srvQueue:0,haproxy_backendQueue:0,haproxy_backendSourceIP:192.168.10.1,haproxy_backendSourcePort:60200,haproxy_statusCode:404,haproxy_serverIP:192.168.1.40,haproxy_serverPort:443,haproxy_frontendIP:94.79.171.94,haproxy_frontendPort:443,haproxy_capturedRequestHeaders:{mail.koellers.net},haproxy_httpRequest:GET /sdfsdfsdfs/erwer HTTP/1.1}

The "Manage Stream Rules" states:

Field haproxy_statusCode must be greater than 399
Field haproxy_statusCode must be smaller than 500

No Idea what's wrong here.

Messages all blank

Does it work with Graylog 3.1?

Followed all the instructions but I get blank messages
image

This is my rsyslog.d/49-graylog.conf

$template GRAYLOGRFC5424,"<%PRI%>%PROTOCOL-VERSION% %TIMESTAMP:::date-rfc3339% %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA% %msg%\$
local0.=info -/var/log/haproxy/haproxy.log;GRAYLOGRFC5424
local0.=info @graylog:12211;GRAYLOGRFC5424
& stop

And here is what I get in the haproxy.log (IPs and server names scrubbed)

<134>0 2020-02-16T14:18:54+00:00 11891690394b haproxy 1 - -  X.X.X.X:31494 [16/Feb/2020:14:18:54.095] external~ apache/apache 0/0/0/4/4 200 10618 - - ---- 1/1/0/1/0 0/0 {XXXXXXXXX|Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36||Y.Y.Y.Y} "GET /index.htm?=& HTTP/1.1"$

gl2_processing_error with graylog 3, "unexpected character code 46"

Thanks for the hard work you put into the project!
I am receiving gl2_processing_error

Could not apply extractor <Extract JSON fields (15adfb62-d840-4a6f-828f-a35daf2a3cd4)> - Unexpected character ('.' (code 46)): Expected space separating root-level values
at [Source: (String)"IP_ADDRESS:PORT [20/Oct/2022:20:09:52.033] vfrontend~ vbackend/backend-n2 0/0/0/2/2 200 781 - - ---- 2/1/0/0/0 0/0 {DOMAIN|Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0|DOMAIN/URL.html|} "GET /URL_2.html HTTP/1.1"$"; line: 1, column: 9].

Tried loading the log format file from the issue #4 but did no help, debugging deeper now

GEO Location

Hello, I am missing the fields
haproxy_clientIP_country_code
haproxy_clientIP_geolocation
The geo map is set up and I have also set up a lookup table (with data adapter and cache), what do I have to do to get the two fields to come?

Thanks a lot

custom index mappings and Elastic 7.x

With Elastic version 7.x
this command

$ curl -X PUT -d @'graylog-custom-mapping.json' -H 'Content-Type: application/json' 'http://localhost:9200/_template/graylog-custom-mapping?pretty'
Dosent work anymore for the graylog-custom-mapping.json

{
"template": "graylog_*",
"mappings" : {
"message" : {
"properties" : {
"haproxy_Tc" : {
"type" : "long"
},
"haproxy_Tt" : {
"type" : "long"
},
"haproxy_Tw" : {
"type" : "long"
},
"haproxy_bytesRead" : {
"type" : "long"
}
}
}
}
}

It is necessary to remove this line
"message" : {
And to remove the corresponding curly bracket
}

The working graylog-custom-mapping.json
is the following

{
"template": "graylog_*",
"mappings" : {

        "properties" : {
            "haproxy_Tc" : {
                "type" : "long"
            },
            "haproxy_Tt" : {
                "type" : "long"
            },
            "haproxy_Tw" : {
                "type" : "long"
            },
            "haproxy_bytesRead" : {
                "type" : "long"
            }
        }

}

}

Thanks for your work :)

Info: https://xyzcoder.github.io/elasticsearch/nest/2019/04/12/es-70-and-nest-mapping-error.html

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.