<?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: How to create &amp;quot;for cycle&amp;quot; routine to generate panels/rows from a search using Splunk XML? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464504#M130908</link>
    <description>&lt;P&gt;@verbal_666 if you want to have dynamic single values for each host in the lookup, please try the Trellis Layout feature and confirm. Following is the Splunk Documentation&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You will find several examples on Splunk Answers if you search for Trellis Single Value.&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 20:04:39 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-05-24T20:04:39Z</dc:date>
    <item>
      <title>How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464500#M130904</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;
I would like to know if there is a simple way, via Splunk XML, to create a "for cycle" like routine, to generate panels or rows from a simple SPL search.&lt;/P&gt;

&lt;P&gt;A simple example,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I have a lookup  &lt;CODE&gt;my_hosts.csv&lt;/CODE&gt; with a list of hosts (&lt;EM&gt;host1 host2 host3&lt;/EM&gt;)&lt;/LI&gt;
&lt;LI&gt;In a normal way, if I want to make one panel per each host, I need to enter XML code (or make via UI ok) and create every panel manually where, inside, I put my search (ex. search ... host=host1 "critical" | stats count) (x3)&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I would like to automatically generate those panels, from a simple  &lt;CODE&gt;|inputlookup my_hosts.csv&lt;/CODE&gt;,&lt;BR /&gt;
with one single for cycle way, something like this:&lt;/P&gt;

&lt;P&gt;for myhost in "| inputlookup my_hosts.csv"; do   &amp;lt;---------------&lt;BR /&gt;
panel&lt;BR /&gt;
single&lt;BR /&gt;
title $myhost$ /title&lt;BR /&gt;
search&lt;BR /&gt;
search ... host=$myhost$ "critical" | stats count&lt;BR /&gt;
/search&lt;BR /&gt;
/single&lt;BR /&gt;
/panel&lt;BR /&gt;
done  &amp;lt;---------------&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is there a way?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 12:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464500#M130904</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-24T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464501#M130905</link>
      <description>&lt;P&gt;@verbal_666 the one panel per host is table or any chart? Can you elaborate? If they are chart you can definitely try Trellis layout!&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 12:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464501#M130905</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-05-24T12:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464502#M130906</link>
      <description>&lt;P&gt;Simple XML has no looping constructs.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 14:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464502#M130906</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-24T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464503#M130907</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Simple XML has no looping constructs.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 18:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464503#M130907</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-24T18:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464504#M130908</link>
      <description>&lt;P&gt;@verbal_666 if you want to have dynamic single values for each host in the lookup, please try the Trellis Layout feature and confirm. Following is the Splunk Documentation&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/VisualizationTrellis&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You will find several examples on Splunk Answers if you search for Trellis Single Value.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 20:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464504#M130908</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-05-24T20:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464505#M130909</link>
      <description>&lt;P&gt;I surely yet tried the trellis function. I'm not really sure i can apply, inside the trellis, a real layout format, like creating a real PANEL or ROW, since trellis create a single PANEL and formats it as a single search (with page layout with scrolling buttons "&amp;lt; &amp;gt;") splitting each search by a field in a single panel.&lt;/P&gt;

&lt;P&gt;I really wanted to create a for cycle in XML, i think it's necessary to convert in html/js the dashboard and work inside it, as a real developer.&lt;/P&gt;

&lt;P&gt;Thanks anyway. &lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 06:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464505#M130909</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-25T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create "for cycle" routine to generate panels/rows from a search using Splunk XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464506#M130910</link>
      <description>&lt;P&gt;I read you, before. Sorry, for no anwser, but trellis resolved partially my "issue". Read next.&lt;BR /&gt;
Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 06:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-quot-for-cycle-quot-routine-to-generate-panels/m-p/464506#M130910</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-25T06:29:29Z</dc:date>
    </item>
  </channel>
</rss>

