<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trellis Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576840#M201030</link>
    <description>&lt;P&gt;Brilliant. Thanks... I learned a lot from picking that apart.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 06:32:50 GMT</pubDate>
    <dc:creator>JanetLong</dc:creator>
    <dc:date>2021-12-01T06:32:50Z</dc:date>
    <item>
      <title>Trellis Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576572#M200938</link>
      <description>&lt;P&gt;Splunk's VisualizationTrellis documentation page shows example searches for things like count by sourcetype, and later shows trellis-ed visualizations for multi-value items, but there are no example searches for them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data looks like this...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class=""&gt;audit: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; audit_enabled: Compliant, &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; control_access: NotCompliant,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firewall_on: NotCompliant,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc: ...&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can create separate searches for each item in audit {} like this...&lt;/P&gt;&lt;P&gt;source=device_audit&amp;nbsp;&lt;BR /&gt;| stats count by audit.&lt;SPAN&gt;&lt;SPAN class=""&gt;audit_enabled&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But there are many audit items. I'd like to trellis pie charts for each audit item without creating a separate search for each.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there are search I can use to trellis to produce three pie charts to show the split between compliant and notCompliant for each of the audit items (&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;audit_enabled/control_access/firewall_on)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank&amp;nbsp;you.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 09:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576572#M200938</guid>
      <dc:creator>JanetLong</dc:creator>
      <dc:date>2021-11-29T09:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576587#M200941</link>
      <description>&lt;P&gt;The part before the blank lines sets up some dummy data and should be replace with your search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=100
| eval _raw="{\"audit\":{\"audit_enabled\":\"".mvindex(split("Not|","|"),random()%2)."Compliant\",\"controlled_access\":\"".mvindex(split("Not|","|"),random()%2)."Compliant\",\"firewall_on\":\"".mvindex(split("Not|","|"),random()%2)."Compliant\"}}"


| spath
| fields - _raw
| untable _time audit state
| stats count by audit state&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576587#M200941</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-29T10:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576840#M201030</link>
      <description>&lt;P&gt;Brilliant. Thanks... I learned a lot from picking that apart.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 06:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trellis-Search/m-p/576840#M201030</guid>
      <dc:creator>JanetLong</dc:creator>
      <dc:date>2021-12-01T06:32:50Z</dc:date>
    </item>
  </channel>
</rss>

