Hi, "StringLimit" is for individual strings. "BufferSize" is for the total size of the payload in the output. The last error refers to this. AFAIK both of these are currently EE only.
You can truncate a string with the following for example: Exec $myfield = substr($myfield, 0, 1000); Regards, Botond On Tue, 28 Jun 2016 09:34:48 +0000 <marcella.voigtlaen...@tk.de> wrote: > Hi, > > I want to truncate a text field if it is longer than 32766 Bytes. From the > documentation I understand that I can do that with the global StringLimit > directive: > > "To protect against memory exthastion (and possible a DOS) caused by > oversized strings there is a limit on the > number of bytes for strings. If this directive is not specified the default > value is 5242880, i.e. strings will be truncated at > 5Mb." > > If I set StringLimit to 32766 the message is not truncated, it is not > processed by nxlog and an error message in the Logfile is repeating > constantly: > > 2016-06-28 11:25:52 ERROR oversized string, limit is 32766 bytes > 2016-06-28 11:25:54 ERROR oversized string, limit is 32766 bytes > 2016-06-28 11:25:58 ERROR last message repeated 2 times > 2016-06-28 11:26:00 ERROR oversized string, limit is 32766 bytes > > When I do not set the limit the message is processed and truncated, and the > logfile says: > > 2016-06-28 11:23:25 ERROR data size (5242879) is over the limit (65000), will > be truncated > > Can anybody clear this up for me ? How can I truncate a field that is too > long ? > > Best regards > Marcella ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users