Put JSON files with Slack logs into the data
directory and save the Ruby script outside that directory.
Open Terminal and cd
into the directory with the Ruby script. Now type:
ruby parse_logs.rb
You should get output
directory with reports in CSV.