Maybe:

class Object
  def to_logstash
    { '@message' => to_s }
  end
end
```