edited to changed rows to columns.
I can set the table with multiple tokens and it works, but as soon as I change a token using a drop down, it breaks. I need it to keep integrity across the rows, so it should only display the data if the answer= src_MAC AND dst_MAC, the date_time field would changed based on the filtered information.
First drop down:
<panel>
<input type="dropdown" token="srcmac">
<default>All</default>
<choice value="src_MAC">All</choice>
<fieldForLabel>src_MAC</fieldForLabel>
<fieldForValue>src_MAC</fieldForValue>
<search>
<query>index=some_index src_MAC != src_MAC| stats count by src_MAC</query>
<earliest>0</earliest>
</search>
</input>
</panel>
Second drop down:
<input type="dropdown" token="dstmac">
<default>All</default>
<choice value="dst_MAC">All</choice>
<fieldForLabel>dst_MAC</fieldForLabel>
<fieldForValue>dst_MAC</fieldForValue>
<search>
<query>index=come_index dst_MAC != dst_MAC| stats count by dst_MAC</query>
<earliest>0</earliest>
</search>
</input>
</panel>
Table:
<panel>
<table>
<search>
<query>index=some_index| eval src_MAC= $srcmac$ | eval dst_MAC= $dstmac$ | table date_time src_MAC dst_MAC | sort -date_time</query>
<earliest>0</earliest>
<sampleRatio>1</sampleRatio>
</search>
<option name="wrap">true</option>
<option name="rowNumbers">true</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">cell</option>
<option name="count">10</option>
</table>
</panel>
... View more