Code Monkey home page Code Monkey logo

Comments (5)

acouvreur avatar acouvreur commented on June 3, 2024

You are right.

I'm currently working on detecting PubkeyAuthentication errors.

Invalid user bob from 72.xx.xx.87 port 38124 is one of these indeed.

If you find any other valid error to catch, that will be nice. Thanks!

from ssh-log-to-influx.

edasque avatar edasque commented on June 3, 2024

Awesome, good to hear. Do you know of a way to confirm that the rsyslog configuration works?

from ssh-log-to-influx.

acouvreur avatar acouvreur commented on June 3, 2024

Do you mean this kind of configuration ?

template(name="OnlyMsg" type="string" string="%msg:::drop-last-lf%\n")
if $programname == 'sshd' then {
   if $msg startswith ' Failed' then {
      action(type="omfwd" target="127.0.0.1" port="7070" protocol="tcp" template="OnlyMsg")
   }
}

I don't know any other way to test it apart from using it directly and trying to dispatch message by logging into the system.

The configuration will have to change to catch more errors, we already restric the scope to the sshd logs so maybe accepting all logs is something to consider. And do the heavy work inside server.

from ssh-log-to-influx.

edasque avatar edasque commented on June 3, 2024

Cool. One last suggestion, make your dashboard available on grafana.com or export it by clicking "Share" and "For External". As is it, it's really hard to re-use.

from ssh-log-to-influx.

acouvreur avatar acouvreur commented on June 3, 2024

Good suggestion, just did it. Hower I'm using Grafana 7.1... So only compatible with grafana:master.

The reason why is because I need new features to join on the time range to have valid values of the last time the attack happend + the sum of the attack from the ip.

from ssh-log-to-influx.

Related Issues (20)

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.