JSON Rehasher (useful for ELK)
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
sample_input
tests
.gitignore
.ruby-version
README.md
Rakefile
jsonrehasher.gemspec

README.md

JsonRehasher

Requirements

  1. Ruby 2.3.x
  2. Rake

Building

Just run rake build.

Testing

  1. rake test

Running

# help
ruby bin/jsonrehasher --help

# rehash a file
ruby bin/jsonrehasher --file sample_input/input.json

# rehash from stdin
ruby bin/jsonrehasher --data '{"a.b.c.d": 1}'

Notes

Algo is not efficient at all, could be done much better. In fact I think It is horrible.