Skip to content

Instantly share code, notes, and snippets.

@xbulat
xbulat / rundeck2elastic.rb
Last active October 4, 2020 19:18
rundeck_logs_to_elasticsearch
# frozen_string_literal: true
require 'json'
require 'open-uri'
require 'elasticsearch'
RUNDECK_TOKEN = '<TOKEN>'
RUNDECK_URI = 'https://rundeck.example.com/api'
PROJECT_ID = 123
defencoding en_US.UTF-8
setenv SCREEN_LANG
setenv LANG $SCREEN_LANG
startup_message off
autodetach on
defscrollback 10000
altscreen on
#bindkey -m "^[[5;2~" stuff ^b
# Use xterm screen buffer