<?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 do I put over 100 results into one line? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417678#M27507</link>
    <description>&lt;P&gt;If you want to take a list of mac addresses and format it as a (part of a) search string, use the &lt;CODE&gt;format&lt;/CODE&gt; command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Format" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Format&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| eval MAC_Address=replace(MacAddress, "(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})", "\1:\2:\3:\4:\5:\6") 
| fields MAC_Address
| format
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Though this results in MAC_Address=x:x:x:x OR MAC_Address=a:b:c:d etc. So if you don't want that MAC_Address= part, you would have to strip that out again.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:31:22 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2020-09-29T23:31:22Z</dc:date>
    <item>
      <title>How do I put over 100 results into one line?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417677#M27506</link>
      <description>&lt;P&gt;Good morning Splunkers!&lt;/P&gt;

&lt;P&gt;I need help please! I am working on a dashboard that shows a list of MAC Addresses and sometimes the list is over 100 different addresses depending on the area. &lt;/P&gt;

&lt;P&gt;So basically, I need to take multiple rows and put them into one line. I have a table that utilizes the &lt;STRONG&gt;nomv&lt;/STRONG&gt; command, but it limits the MAC Addresses to 100. I use this table to drilldown to a custom URL, which is another Splunk instance that passes the list of MAC Addresses into another search for further processing. &lt;/P&gt;

&lt;P&gt;Below is what I have to place colons between every two characters of an unformatted MAC Address then throws it into a stats command to list and add " OR " between each one and finally, the &lt;STRONG&gt;nomv&lt;/STRONG&gt; takes multivalue fields and puts it into one row. I've played around with using the head and tail command to get as much as I can, however, it is not enough and gives some duplicates if less than 200.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval MAC_Address=replace(MacAddress, "(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})", "\1:\2:\3:\4:\5:\6") 
| stats list(MAC_Address) as MAC_Address delim=" OR " 
| nomv MAC_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was wondering if there is another command/way that will allow me to take more than 100 and put them into one line to pass through? I am open to other methods such as scripting to accomplish this.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 13:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417677#M27506</guid>
      <dc:creator>jkcadaing</dc:creator>
      <dc:date>2019-02-28T13:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put over 100 results into one line?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417678#M27507</link>
      <description>&lt;P&gt;If you want to take a list of mac addresses and format it as a (part of a) search string, use the &lt;CODE&gt;format&lt;/CODE&gt; command: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Format" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Format&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| eval MAC_Address=replace(MacAddress, "(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})(\w{2})", "\1:\2:\3:\4:\5:\6") 
| fields MAC_Address
| format
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Though this results in MAC_Address=x:x:x:x OR MAC_Address=a:b:c:d etc. So if you don't want that MAC_Address= part, you would have to strip that out again.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417678#M27507</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-09-29T23:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put over 100 results into one line?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417679#M27508</link>
      <description>&lt;P&gt;Thank you for the quick reply! The command works good, but I've found anything over 150 causes a 414 Request-URI Too Large error haha. &lt;/P&gt;

&lt;P&gt;Wondering maybe is there a way to select 0-100, 101-200, 201-300, etc?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 14:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417679#M27508</guid>
      <dc:creator>jkcadaing</dc:creator>
      <dc:date>2019-02-28T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put over 100 results into one line?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417680#M27509</link>
      <description>&lt;P&gt;Right, your problem is with passing this to a URL that is called as a drilldown. You might need to run the sub search that generates the list of mac addresses again as part of the drilldown, rather than passing the list along.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-put-over-100-results-into-one-line/m-p/417680#M27509</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-02-28T15:33:28Z</dc:date>
    </item>
  </channel>
</rss>

