I wouldn't expect ~ to be expanded in this context, plus which user context are we talking about here? Try using an absolute path, and make sure that path is writable by the Logstash user.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.