The Splunk query below returns only the calc_string column and returns blank for the index column, if I remove the ln4 and ln5 it returns index. How can I make this query to return both columns Please advise??
index=vehicle* sourcetype=info_ssl splunk_server_group=ALL | stats values(xx) as XX values(yy) as YY
| eval calc_string=if(isnull(XX), YY, XX) | table index calc_string
| sort index