GithubHelp home page GithubHelp logo

wearethefoos / chef-logstash Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 25.0 357 KB

Basic Logstash cookbook for Chef that installs Logstash from the official package repo's.

License: MIT License

Ruby 85.13% HTML 4.30% Shell 10.57%

chef-logstash's People

Contributors

alephnot avatar capital5 avatar guisim avatar iandexter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chef-logstash's Issues

Logstash 1.5

So I've been poking around for a while now trying to get logstash 1.5 to install, but I'm continually getting hung up at various points. I've been trying to figure out where in the code (if that is the source of the trouble) things are failing but to no avail.

My question would be whether anyone has used this repo to install Logstash 1.5, and if so what steps were taken to get there.

The error I'm seeing now is as follows:

[2015-09-28T02:53:25+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/db-logstash2.localdomain/runs

I've had many others, but at this point it doesn't look like Logstash is even booting on my machines.

Cheers

How do I add the new conditionals in the Chef config?

How do I use the new conditional for "type" in the Chef configuration?

I currently use the following config:

...
    "agent": {
      "inputs": [
        {
          "file": {
            "path": ["/var/log/nginx/*log"],
            "exclude": ["*.gz"],
            "type": "nginx-access",
            "start_position": "beginning"
          }
        }
      ],
      "filters": [
        {
          "grok": {
            "type": "nginx-access",
            "match": [ "message", "%{IPORHOST:remote_addr} - %{USER:remote_user} \\[%{HTTPDATE:timestamp}\\] \\\"(?:%{WORD:http_verb} %{NOTSPACE:http_request}(?: HTTP/%{NUMBER:http_version})?|%{DATA:raw_http_request})\\\" %{NUMBER:http_status_code} (?:%{NUMBER:bytes_read}|-) %{QS:http_referer} %{QS:http_user_agent}"]
          }
        }
      ],
...

It appears to work, but I'm getting this in the logs:

{:timestamp=>"2014-12-28T13:10:20.495000+0000", :message=>"You are using a deprecated config setting \"type\" set in grok. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. You can achieve this same behavior with the new conditionals, like: `if [type] == \"sometype\" { grok { ... } }`. If you have any questions about this, please visit the #logstash channel on freenode irc.", :name=>"type", :plugin=><LogStash::Filters::Grok --->, :level=>:warn}

Thanks.

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.