Why the documentation is so completely wrong is beyond me. Furthermore I had to set the retention policy to autogen (not default) since there is no policy called default in recent influxdbs.
What should have taken 1/2 an hour landed up taking way way more.
i get an error. how did you solve this problem, could you post your connection logstash file please? this would really help a lot!!
JAVA_OPTS was set to [ -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSP
arallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSIniti
atingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutO
fMemoryError -XX:HeapDumpPath="C:\tools\logstash-5.2.2/heapdump.hprof"]. Logstas
h will trust these options, and not set any defaults that it might usually set
Could not find log4j2 configuration at path /tools/logstash-5.2.2/config/log4j2.
properties. Using default config which logs to console
10:31:41.517 [LogStash::Runner] ERROR logstash.agent - Cannot load an invalid co
nfiguration {:reason=>"Expected one of #, {, } at line 37, column 37 (byte 731)
after output {\n\n\tstdout { codec => rubydebug }\n\n influxdb {\n\t\t
db => "toast"\n host => "localhost"\n measureme
nt => "myseries"\n allow_time_override => true\n \n
exclude_fields => ["@version", "@timestamp", "sequence", "message",
"type", "host"]\n\t\t\tsend_as_tags => ["bar", "feild", "test1", "te
st"]\n\t\t\tdata_points => {'foo' => "%{foo}""}
It is rather idiotic. The documentation says that you need , between fields, but of course it ain't so. And if you don't quote the datapoint fields "%{foo}" it also barfs. Oh, joy!!
you are so right, i tried for hours to get the right syntax ...
here is my config file for transferring redis to influx via logstash ... works as i can say, except i get other errors now but one step after the other! thanks a lot mate!
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.