Here are the steps to reproduce this problem:
Store below logs to ES. documentTitle field has 255, 256 and 257 characters respectively, kibana Discover option shows 3 fields which is correct. Now create any visualization, eg. create pie chart, split slices with Terms Aggregation and select field as "@message.documentTitle.raw". This chart will only show 2 fields which have less than 256 characters.
{"@timestamp":"2016-01-09T03:13:24.7836248+01:00","@fields":{"level":"INFO","logger":"queryLog","properties":{"log4net:HostName":"hostMachine"},"exception":null},"@message":{"flow":"Flow1","documentTitle":"255 How to be a Programmer: A Short, Comprehensive, and Personal Summary Comprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal Summary asdfgh","hitNumber":3,"queryId":"06728e4a-8e53-40f4-a26d-7d81403732f8"}}
{"@timestamp":"2016-01-09T03:13:25.7836248+01:00","@fields":{"level":"INFO","logger":"queryLog","properties":{"log4net:HostName":"hostMachine"},"exception":null},"@message":{"flow":"Flow1","documentTitle":"256 HHow to be a Programmer: A Short, Comprehensive, and Personal Summary Comprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal Summary asdfgh","hitNumber":3,"queryId":"06728e4a-8e53-40f4-a26d-7d81403732f8"}}
{"@timestamp":"2016-01-09T03:13:26.7836248+01:00","@fields":{"level":"INFO","logger":"queryLog","properties":{"log4net:HostName":"hostMachine"},"exception":null},"@message":{"flow":"Flow1","documentTitle":"257 HHHow to be a Programmer: A Short, Comprehensive, and Personal Summary Comprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal SummaryComprehensive, and Personal Summary asdfgh","hitNumber":3,"queryId":"06728e4a-8e53-40f4-a26d-7d81403732f8"}}
Can someone please inform how this limit can be increased ?