Limit size of a data field in kibana

You can create a scripted field with type String with Format of Truncated String to do this.