TECHZEN Zenoss User Community ARCHIVE  

Events Summary and Message fields size

Subject: Events Summary and Message fields size
Author: Wonder
Posted: 2017-07-31 21:30

Hi All,

Summary and Message fields
Zenoss remove preview
Summary and Message fields
The summary and message fields are free-form text fields. The summary field allows up to 255 characters. The message field allows up to 4096 characters. These fields usually contain similar data.
View this on Zenoss >


According to the above documentation, I can send upto 255 characters in the summary field and 4096 characters in the message field. However, the data loss is possible if either of them exceeds 65535. If I am sending more than 4096 characters to the message or summary field, they both retain to their maximum values.

How can i send more characters to either message or summary field? 



------------------------------
SuChi Patnaik
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Jane Curry
Posted: 2017-08-02 13:42

I don't think you can do this easily.  Those sizes are defined as the lengths of the summary and message fields in the zenoss_zep database where all events are stored.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Wonder
Posted: 2017-08-03 01:39

It means the size of the events database is predefined. Is there a possibility that we can change the size of some of the fields??

------------------------------
SuChi Patnaik
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Jane Curry
Posted: 2017-08-03 05:50

Nope :(

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Wonder
Posted: 2017-08-03 07:32

I am trying to add new fields to the Events_details which takes as many characters as I give in the range of thousands.. Is there any limit on those fields??

------------------------------
SuChi Patnaik
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Jane Curry
Posted: 2017-08-03 11:06

Your problem is that the Zenoss daemon that processes incoming events (zenpython for Windows events, zentrap for SNMP events, zensyslog for syslog events) will already have truncated the message field to 4096 characters, if that is what you are hoping to parse out into new event_details fields?

The event_summary table in the zenoss_zep database defines a field called details_json and specifies it as "MEDIUMTEXT", which I understand to be a string with a maximum length of 16,777,215 characters.  However, this has to hold ALL the event_details, in JSON format so it doesn't really help you with how many characters any individual  event_detail can be.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: Events Summary and Message fields size
Author: Wonder
Posted: 2017-08-04 00:29

Well I am trying to parse them to the events_details section(In a new field defined by me) due to the message field truncated to 4096.

As the maximum characters that can be hold by "details_json" is high, so I think I can define an additional key within that to hold the data.(maybe in 2k characters or so). 

Thanks

------------------------------
SuChi Patnaik
------------------------------


< Previous
Latest Linux Monitor ZenPack (2.2.5) breaks Windows Filesystem Transform
  Next
REST method for overall device status?
>