This is just so other people had same problem.
Error
**[esaggs] > Cannot read property 'doc_count' of undefined **
After upgrade from any version to 7.3.1 your visulize will break if you have use filter
because by default it uses lucene
you now have to use KQL
only solution so far I have found is to change all the viz and change from Lucene to KQL