GithubHelp home page GithubHelp logo

telegrammetry's Introduction

Telegrammetry

Stats for Telegram

tgrm dashboard

Dependencies

  • Python (tested with 3.7)
  • Elasticsearch (tested with 6.2.4)
  • Kibana (tested with 6.2.4)
  • Filebeat (tested with 6.2.4)

Setup

  1. Fill in your Telegram account details into telegram.ini.

  2. Run messages.py and redirect its output to a file:

PYTHONUNBUFFERED=1 python messages.py > messages.log

Note: You need to run messages.py at least once first to set up your Telegram session on a new device with the code that will be sent to you.

  1. Start Elasticsearch

  2. Modify filebeat.yml and add your message log path under paths for the log input:

 # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /path/to/your/log/file
  1. Start Filebeat and set the config path to the tgrm folder:
filebeat -e --path.config $PWD

The -e flag tells Filebeat to log to standard error.

  1. Start Kibana.

  2. Inside Kibana, create an index pattern for filebeat-, selecting timestamp as the Time Filter field name.

  3. After creating a new index pattern, go to the "Management" tab and select "Index Patterns". The ID of the newly-created index pattern will be in the address bar just behind indices/. Copy it.

  4. Inside visualisations.json, replace all IDs under kibanaSavedObjectMeta.searchSourceJSON.index with your index ID.

  5. Go to "Saved Objects" under the "Management" tab and import your modified visualisations.json and dashboard.json.

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.