<?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 Can you help me with my search results visualization column chart issue? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414877#M73357</link>
    <description>&lt;P&gt;The original data is json format&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5895iBE6EFEA913C4379F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Search Language is as follows:&lt;/P&gt;

&lt;P&gt;I successfully extracted the data and displayed as a table.  But why did the visualization fail? I just want for each "group" to have a bar stacked. Seems that the issue is with the "Statistics": (1), How do I split it into 7 lines?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; sourcetype="cisco:opendns:api" |
&amp;gt; rename organizations{}.name AS group,
&amp;gt; organizations{}.requests.allSecurity
&amp;gt; AS allSecurity,
&amp;gt; organizations{}.requests.blocked AS
&amp;gt; blocked,
&amp;gt; organizations{}.requests.contained AS
&amp;gt; contained,
&amp;gt; organizations{}.requests.prevented AS
&amp;gt; prevented,
&amp;gt; organizations{}.requests.security AS
&amp;gt; security,
&amp;gt; organizations{}.requests.total AS
&amp;gt; total | table group, allSecurity,
&amp;gt; blocked, contained, prevented,
&amp;gt; security, total | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5896iC9547D30443FCBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 16:55:13 GMT</pubDate>
    <dc:creator>haoban</dc:creator>
    <dc:date>2018-10-11T16:55:13Z</dc:date>
    <item>
      <title>Can you help me with my search results visualization column chart issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414877#M73357</link>
      <description>&lt;P&gt;The original data is json format&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5895iBE6EFEA913C4379F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Search Language is as follows:&lt;/P&gt;

&lt;P&gt;I successfully extracted the data and displayed as a table.  But why did the visualization fail? I just want for each "group" to have a bar stacked. Seems that the issue is with the "Statistics": (1), How do I split it into 7 lines?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; sourcetype="cisco:opendns:api" |
&amp;gt; rename organizations{}.name AS group,
&amp;gt; organizations{}.requests.allSecurity
&amp;gt; AS allSecurity,
&amp;gt; organizations{}.requests.blocked AS
&amp;gt; blocked,
&amp;gt; organizations{}.requests.contained AS
&amp;gt; contained,
&amp;gt; organizations{}.requests.prevented AS
&amp;gt; prevented,
&amp;gt; organizations{}.requests.security AS
&amp;gt; security,
&amp;gt; organizations{}.requests.total AS
&amp;gt; total | table group, allSecurity,
&amp;gt; blocked, contained, prevented,
&amp;gt; security, total | head 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5896iC9547D30443FCBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414877#M73357</guid>
      <dc:creator>haoban</dc:creator>
      <dc:date>2018-10-11T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my search results visualization column chart issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414878#M73358</link>
      <description>&lt;P&gt;I'm guessing the charting fails due to multivalued fields you've in your event (there are multiple groups in a single event, the numerical values are treated as string in multivalued field and thus can't be plotted). You'd need expand them into single value fields/row and then plot. Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="cisco:opendns:api" 
|  rename organizations{}.name AS group,  organizations{}.requests.*  AS *
| table group, allSecurity,  blocked, contained, prevented,  security, total | head 1
| eval temp=mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(group,allSecurity,"#"), blocked,"#"),contained,"#"),prevented,"#"),security,"#"),total,"#")
| table temp 
| mvexpand temp
| rex field=temp "(?&amp;lt;group&amp;gt;[^#]+)#(?&amp;lt;allSecurity&amp;gt;[^#]+)#(?&amp;lt;blocked&amp;gt;[^#]+)#(?&amp;lt;contained&amp;gt;[^#]+)#(?&amp;lt;prevented&amp;gt;[^#]+)#(?&amp;lt;security&amp;gt;[^#]+)#(?&amp;lt;total&amp;gt;[^#]+)"
| fields -temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414878#M73358</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-10-11T18:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my search results visualization column chart issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414879#M73359</link>
      <description>&lt;P&gt;Thanks somesoni2. It works, but why it's so complicated! &lt;BR /&gt;
following is the final search language:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;sourcetype="cisco:opendns:api" |&lt;BR /&gt;
rename organizations{}.name AS group,&lt;BR /&gt;
organizations{}.requests.allSecurity&lt;BR /&gt;
AS allSecurity,&lt;BR /&gt;
organizations{}.requests.blocked AS&lt;BR /&gt;
blocked,&lt;BR /&gt;
organizations{}.requests.contained AS&lt;BR /&gt;
contained,&lt;BR /&gt;
organizations{}.requests.prevented AS&lt;BR /&gt;
prevented,&lt;BR /&gt;
organizations{}.requests.security AS&lt;BR /&gt;
security,&lt;BR /&gt;
organizations{}.requests.total AS&lt;BR /&gt;
total | table group, allSecurity,&lt;BR /&gt;
blocked, contained, prevented,&lt;BR /&gt;
security, total | head 1 | eval&lt;BR /&gt;
temp=mvzip(mvzip(mvzip(mvzip(mvzip(mvzip(group,allSecurity,"#"),&lt;BR /&gt;
blocked,"#"),contained,"#"),prevented,"#"),security,"#"),total,"#")&lt;BR /&gt;
| table temp | mvexpand temp | rex&lt;BR /&gt;
field=temp&lt;BR /&gt;
"(?[^#]+)#(?[^#]+)#(?[^#]+)#(?[^#]+)#(?[^#]+)#(?[^#]+)#(?[^#]+)" | fields group, allSecurity, blocked,&lt;BR /&gt;
contained, prevented, security&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 20:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414879#M73359</guid>
      <dc:creator>haoban</dc:creator>
      <dc:date>2018-10-11T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my search results visualization column chart issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414880#M73360</link>
      <description>&lt;P&gt;It's because of how your data is logged. Ideally all data points (a unique combination of fields group, allSecurity, blocked, contained, prevented, security) should be available as separate set, e.g. in individual rows. That way you'd be able to plot them better. Since you've json array with your data, we need additional code to split them into separate rows.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 20:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414880#M73360</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-10-11T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my search results visualization column chart issue?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414881#M73361</link>
      <description>&lt;P&gt;You are correct! I reviewed my other data also in json-format but not as json-array, only use "rename" can makes it work fine. Seems I need spend more time on json and splunk extract data. Thanks again! &lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 20:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-my-search-results-visualization-column/m-p/414881#M73361</guid>
      <dc:creator>haoban</dc:creator>
      <dc:date>2018-10-11T20:33:04Z</dc:date>
    </item>
  </channel>
</rss>

