Skip to content

Instantly share code, notes, and snippets.

@xbulat
xbulat / rundeck2elastic.rb
Last active Oct 4, 2020
rundeck_logs_to_elasticsearch
View rundeck2elastic.rb
# frozen_string_literal: true
require 'json'
require 'open-uri'
require 'elasticsearch'
RUNDECK_TOKEN = '<TOKEN>'
RUNDECK_URI = 'https://rundeck.example.com/api'
PROJECT_ID = 123
View gist:457e2482713f674f56fb21140c927cc3
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