GithubHelp home page GithubHelp logo

pcdshub / ads-log-daemon Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 191 KB

Daemon for translating TwinCAT ADS Logger messages to JSON for interpretation by [pcds-]logstash

License: Other

Python 99.95% Shell 0.05%

ads-log-daemon's People

Contributors

klauer avatar zllentz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

klauer zllentz

ads-log-daemon's Issues

Path forward

Roadmap

  1. Get log server online (request is in to PCDS IT)
  2. For each PLC in plc-summary list (alternative method for getting all PLCs? use prog node staticroutes list?)
    a. Auto-route adding (borrow concept from pyads, or just use directly for now)
    b. Configure logging
    c. Save log messages to file and tail it with logstash OR send UDP messages to logstash directly

I think using the project name will be sufficient for most PLCs, but this may need to be revisited - or other experts may have an idea.

Clean up and modularize

Initial implementation in #2 was exceedingly messy, attempting to get things rolling as quickly as possible.

This needs to be broken up and refactored to make it even remotely maintainable.

(It might be nice to use subprocesses at some point to keep the client instances separate, maybe... Perhaps can reconsider searching and parallel execution of tasks?)

Investigate timestamps again

Seems like all of the PLCs are similarly off - so there's some weird time zone interpretation happening (or not happening) here.

One or more of the following are probably off:

  1. ads-async / ads-log-daemon's interpretation of the PLC timestamp
  2. The timestamp shipped off to logstash
  3. Logstash's interpretation of the timestamp in the JSON blob

Allow for multiple LDAP servers

Expected Behavior

  • Provide more than one host for the LDAP server mode, and ads-log-daemon picks the first that works

Current Behavior

  • Single only allowed
  • LDAP host failure? No host updates

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.