GithubHelp home page GithubHelp logo

Comments (13)

odlevakp avatar odlevakp commented on June 15, 2024 10

Any news regarding this issue?
Someone on logstash 7 not having this problem?

When we tested migration to ELK 7, this is the only issue we encountered and it's currently holding back our update.

from logstash-output-slack.

pawellrus avatar pawellrus commented on June 15, 2024 3

I've found an alternative to push messages to mattermost. In my case it's enough.

http
{
http_method => "post"
url => "https://mattermost.*/hooks/********"
format => "message"
message => '{"text":"%{@timestamp} %{[beat][hostname]} %{payload}"}'
}

from logstash-output-slack.

pingdynasty avatar pingdynasty commented on June 15, 2024 1

same issue with 7.8.0

from logstash-output-slack.

RogerHall avatar RogerHall commented on June 15, 2024

I am not familiar with gem/ruby, but it seems that 'bundle update' is a part of ruby package dependency management. From a little digging, it also looks like logstash has its own version of ruby installed in the same tree. What would be the correct way to bootstrap the ruby/gem/bundle environment so that it will work with the logstash installed versions and allow 'bundle update' to be run? Also, would it be correct to run 'bundle update from the logstash home (/usr/share/logstash for me)?

from logstash-output-slack.

visserp avatar visserp commented on June 15, 2024

Having the same issue when building Logstash 7.3.1 for Docker :(

from logstash-output-slack.

pawellrus avatar pawellrus commented on June 15, 2024

I have this issue too. Is there any fix?

from logstash-output-slack.

mpseay avatar mpseay commented on June 15, 2024

We're facing this problem on logstash 7.3 as well. Any ideas?

from logstash-output-slack.

odlevakp avatar odlevakp commented on June 15, 2024

For me it worked when I removed public_suffix dependency check for < 1.5.0.

After some initial testing, the messages are sent to slack, although, I wouldn't consider it a fix.

Clone and edit spec file.

git clone https://github.com/logstash-plugins/logstash-output-slack.git

cd logstash-output-slack/

vim logstash-output-slack.gemspec

Update version (not needed) and remove public_suffix dependency.

-  s.version         = '2.1.1'
+  s.version         = '7.0.0'

-  s.add_runtime_dependency "public_suffix", "< 1.5.0"
+  s.add_runtime_dependency "public_suffix"

Build and install as a plugin.

bundle install
gem build logstash-output-slack.gemspec


cd /usr/share/logstash/

bin/logstash-plugin install \
~/logstash-output-slack/logstash-output-slack-7.0.0.gem 

from logstash-output-slack.

sillyhatxu avatar sillyhatxu commented on June 15, 2024

Having the same issue when building Logstash 7.3.1 for Docker :(

Same problem. Have you fixed it?

from logstash-output-slack.

jeffrey-e avatar jeffrey-e commented on June 15, 2024

Still having this issue with 7.4.2

from logstash-output-slack.

jeroenvanroon avatar jeroenvanroon commented on June 15, 2024

Also having this issue with 7.4.2

from logstash-output-slack.

buzzdeee avatar buzzdeee commented on June 15, 2024

same issue here with 7.6.1

from logstash-output-slack.

caseycs avatar caseycs commented on June 15, 2024

Another option to send messages to slack using http output and define post json content using mapping:

http {
    http_method => "post"
    url => "${SLACK_WEBHOOK}"
    format => "json"
    mapping => {
        channel => "#channel"
        text => "%{level_name} %{channel}: %{message}"
        blocks => [
            {
                type => "section"
                text => {
                    type => "mrkdwn"
                    text => "*%{level_name}, %{channel}*: %{message}"
                }
            }
        ]
        attachments => [
            {
                title => "Kibana"
                title_link => "https://kibana/something"
                color => "#ddd"
            }
        ]
    }
}```

from logstash-output-slack.

Related Issues (11)

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.