Below is my existing query :
i want to add ceratin common feilds with different value for the respective indexes .How can i add and get the filter count of events .Please help me in tuning the query ASAP
here's attaching the different feilds for respective indexes :
It's not very clear to me what you are asking for to be honest.
If you want to apply similar filters to your tstats query like you are showing in your second screenshot, take a look at the PREFIX(), CASE() and TERM() directives you can use in the tstats command:
http://docs.splunk.com/Documentation/Splunk/8.0.5/Search/UseCASEandTERMtomatchphrases
Note: PREFIX() is only available since Splunk 8
Please ignore the |search xxxxx line below eval command line.
was trying something forgot to remove that