Hmm, systemd/journald will truncate lines at 2K bytes, but that shouldn't 
happen if you are logging directly to a file and that example is not 2K 
bytes long.

The config should be

[logging]
file ="/tmp/log.txt"

Notice no double brackets around the logging section.

What version are you using?

There is no logic to truncate any logs within the system so it should just 
log the entire message, unless there are issues writing to disk (i.e. disk 
is full).

On Friday, January 20, 2017 at 8:36:12 AM UTC-7, Kristopher Cieplak wrote:
>
> Cannot for the life of me figure out how to get logging to wrap lines. I 
> am trying to debug a tick script, by using the log node. but when the point 
> is dumped to log, it is truncated
>
> ```
> [system-load5:log3] 2017/01/19 07:53:38 I! 
>  
> {"Name":"system","Database":"ion_v2","RetentionPolicy":"default","Group":"host=host2","Dimensions":{"ByName":false,"TagNames":["host"]},"Tags":{"deployment":"local","host":"host2
> ```
>
> I have tried configuring the logging to go to a file i.e.
>
> [[logging]]
> file ="/tmp/log.txt"
>
> With the same results, so it seems something internal is truncating the 
> log line.  Looks like it is using the standard go "log" package.
>
> Any ideas?
>
> Thanks.
>
>
>
>
>
>

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to influxdb+unsubscr...@googlegroups.com.
To post to this group, send email to influxdb@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/e80d1391-0f80-4e07-9905-dd2eb21e7cf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to