<?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: Display only few sentences and show all with arrorw when you click in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509227#M142307</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for reply!&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     &amp;lt;fields&amp;gt;["Date","partial_uri"]&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="uri"&amp;gt;$row.uri$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$uri$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Full error message details&amp;lt;/h1&amp;gt;
        $uri$&lt;/LI-CODE&gt;&lt;P&gt;I'm still beginner so i have more questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can i find&amp;nbsp; url?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;["Date","&lt;STRONG&gt;partial_uri&lt;/STRONG&gt;"] , &lt;STRONG&gt;$uri$&lt;/STRONG&gt;, &lt;STRONG&gt;$row.uri$&lt;/STRONG&gt;&amp;nbsp; is all same uri ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 09:51:34 GMT</pubDate>
    <dc:creator>summerura</dc:creator>
    <dc:date>2020-07-15T09:51:34Z</dc:date>
    <item>
      <title>Display only few sentences and show all with arrorw when you click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509091#M142243</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="summerura_0-1594740583311.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9689i01B45628B1223BD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="summerura_0-1594740583311.png" alt="summerura_0-1594740583311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my search is like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it makes table with data and error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But error message includes like 50sentences.&amp;nbsp; And&amp;nbsp; I want to show this all sentences in table. But as you can image that table is too long and my dashboard looks like ugly.&amp;nbsp; So i want to show only first 3sentences with arrow or something.&amp;nbsp; Which means when user click arrow show all sentences for error, but before click you can see only 3 sentences.&lt;/P&gt;&lt;P&gt;Can i do this in splunk?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509091#M142243</guid>
      <dc:creator>summerura</dc:creator>
      <dc:date>2020-07-14T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display only few sentences and show all with arrorw when you click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509149#M142264</link>
      <description>&lt;P&gt;This will give you an example of how you can do this with drilldown from your first panel to a second panel where the full message is displayed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Test2&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd_ui_access
| rex field=uri "\?(?&amp;amp;lt;path&amp;amp;gt;.*)$" 
| eval pos = if(length(path) &amp;amp;gt; 0, length(uri) - length(path), length(uri)) 
| eval more=if(pos&amp;amp;gt;35,1,0), pos=if(more=1,min(pos,35), min(pos,42))
| eval partial_uri=substr(uri,1, pos - 1)
| eval partial_uri=if(more=1,partial_uri." (..more)", partial_uri)
| eval Date=strftime(_time, "%m-%d-%Y %H:%M:%S")
| table Date partial_uri uri&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;["Date","partial_uri"]&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="uri"&amp;gt;$row.uri$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$uri$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Full error message details&amp;lt;/h1&amp;gt;
        $uri$
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 22:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509149#M142264</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-07-14T22:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display only few sentences and show all with arrorw when you click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509227#M142307</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for reply!&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     &amp;lt;fields&amp;gt;["Date","partial_uri"]&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="uri"&amp;gt;$row.uri$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$uri$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Full error message details&amp;lt;/h1&amp;gt;
        $uri$&lt;/LI-CODE&gt;&lt;P&gt;I'm still beginner so i have more questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can i find&amp;nbsp; url?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;["Date","&lt;STRONG&gt;partial_uri&lt;/STRONG&gt;"] , &lt;STRONG&gt;$uri$&lt;/STRONG&gt;, &lt;STRONG&gt;$row.uri$&lt;/STRONG&gt;&amp;nbsp; is all same uri ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 09:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509227#M142307</guid>
      <dc:creator>summerura</dc:creator>
      <dc:date>2020-07-15T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display only few sentences and show all with arrorw when you click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509431#M142373</link>
      <description>&lt;UL&gt;&lt;LI&gt;uri is the field in the example search&lt;/LI&gt;&lt;LI&gt;partial_uri is the field I created that is a shortened form of uri&lt;/LI&gt;&lt;LI&gt;The &amp;lt;fields&amp;gt; statement is one that restricts the visible fields in the table to only the date and the partial uri&lt;/LI&gt;&lt;LI&gt;The $row.uri$ is how the clicked drilldown accesses the (non visible) uri field in the table and assigns it to the uri token&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Tokens are of the form $name$, so $uri$ is a token called uri and it is assigned the contents of the uri field from the search in the drilldown section of the dashboard when it does the set token statement.&lt;/P&gt;&lt;P&gt;Have a read of this, as it will make things clearer (hopefully :))&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/Viz/PanelreferenceforSimplifiedXML" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/Viz/PanelreferenceforSimplifiedXML&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 01:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-only-few-sentences-and-show-all-with-arrorw-when-you/m-p/509431#M142373</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-07-16T01:21:08Z</dc:date>
    </item>
  </channel>
</rss>

