Treasure Data

    • Service
      • How it Works
      • Pricing
    • Business
      • White Papers
      • Success Stories
    • Developers
      • Documentation
      • Support
    • Company
      • About Us
      • Partners
      • Blog
      • Contact Us
      • Careers
    • Newsroom
      • Press Releases
      • In The News
  • Sign Up!

Just STDOUT: The Simplest, Most Flexible Way To Collect Application Data On Heroku

  • heroku
  • new feature

Tweet

At Treasure Data, we constantly try to simplify how our customers collect and interact with their data.

Over the past several months, we reached out to two dozens or so customers and listened to their feedback. One pattern emerged: they spend a lot of time on data collection and wanted something simpler.

So, we rolled up our sleeves and built a feature to simplify data collection even more: from now on, our Heroku customers can store data on Treasure Data by just printing to stdout in a specified format.

Treasure Data's Heroku Log Drain Integration

The format is very simple:

@[db_name.table_name] json_in_one_line

e.g., if you wanted to store the event { "first_name": "Bob", "last_name": "Smith" } into the table users in the database service, you just write

@[service.users] { "first_name": "Bob", "last_name": "Smith" }

into stdout. Hence, in Ruby,

puts '@[service.users] { "first_name": "Bob", "last_name": "Smith" }'

in Java,

System.out.println("@[service.users] { \"first_name\": \"Bob\", \"last_name\": \"Smith\" }")

in PHP,

echo '@[service.users] { "first_name": "Bob", "last_name": "Smith" }'.PHP_EOL;

in Node.js,

process.stdout.stream('@[service.users] { "first_name": "Bob", "last_name": "Smith" }')

and so on.

As you noticed, this new interface is language agnostic: all languages let you print out to stdout out of the box, and that’s all you need to get started with Treasure Data on Heroku now.

So, if you are a Heroku user, just run

$ heroku addons:add treasure-data:nano

and start collecting data today.

Masa

Masa, the engineer who built this new feature, likes to bike everywhere, rain or shine.

Notes:

  • Our documentation on Heroku
  • Documentation on our docs page
  • If you have any feedback, please feel free to email us at support@treasure-data.com! Your input is very valuable to us =)
  • 3 months ago
  • 2
  • Comments
  • Permalink
  • Share
    Tweet

2 Notes/ Hide

  1. hesperepseh likes this
  2. ykhroki likes this
  3. treasure-data posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Treasure Data Blog

About

Hi, we're Treasure Data, Inc. We provide a cloud-based platform to help you store and analyze data.

Treasure Data Elsewhere

  • @TreasureData on Twitter
  • Facebook Profile
  • Linkedin Profile
  • treasure-data on github

See more →
  • RSS
  • Random
  • Archive
  • Mobile

Treasure Data Blog uses Treasure Data, Inc. All Rights Reserved. Effector Theme by Carlo Franco.

Powered by Tumblr