<?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 multi date_wday values in single column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121059#M32544</link>
    <description>&lt;P&gt;It is hard to be sure without more detail but perhaps this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(date_wday) AS dayserroroccurredon BY error | nomv dayserroroccurredon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command creates a &lt;CODE&gt;multivalued&lt;/CODE&gt; field and the &lt;CODE&gt;nomv&lt;/CODE&gt; command merges all the values into a single whitespaced conglomerated value.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2015 03:09:08 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-14T03:09:08Z</dc:date>
    <item>
      <title>Display multi date_wday values in single column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121058#M32543</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am attempting (unsuccessfully so far) to display multiple date_wday values in a single table column.&lt;/P&gt;

&lt;P&gt;My search checks for errors over a  7 day period. There are errors that occur on multiple days or may only occur after a certain day (in the case of application updates etc).&lt;/P&gt;

&lt;P&gt;My end aim is to produce  table that has the error and the days that the error occurred on. &lt;BR /&gt;
&amp;lt;Search&amp;gt; | table error dayserroroccurredon&lt;/P&gt;

&lt;P&gt;++Output++&lt;BR /&gt;
ERROR XXXXX Mon, Tues, Wed&lt;BR /&gt;
ERROR XXXXX Wed, Thursday&lt;/P&gt;

&lt;P&gt;I have tried various appends but none give me the result I want and simply put each day on a new line&lt;/P&gt;

&lt;P&gt;Is there away to combine the day values into a single field that can then be outputted to a table ?&lt;/P&gt;

&lt;P&gt;Any help or advise will be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Alastair&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 02:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121058#M32543</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2015-07-14T02:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display multi date_wday values in single column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121059#M32544</link>
      <description>&lt;P&gt;It is hard to be sure without more detail but perhaps this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(date_wday) AS dayserroroccurredon BY error | nomv dayserroroccurredon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;stats&lt;/CODE&gt; command creates a &lt;CODE&gt;multivalued&lt;/CODE&gt; field and the &lt;CODE&gt;nomv&lt;/CODE&gt; command merges all the values into a single whitespaced conglomerated value.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 03:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121059#M32544</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-14T03:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display multi date_wday values in single column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121060#M32545</link>
      <description>&lt;P&gt;Works a treat.. thank you.&lt;/P&gt;

&lt;P&gt;Now just to work out how to get the count of the number of times the error occurred.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 03:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121060#M32545</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2015-07-14T03:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display multi date_wday values in single column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121061#M32546</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count values(date_wday) AS dayserroroccurredon BY error | nomv dayserroroccurredon
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jul 2015 03:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121061#M32546</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-14T03:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display multi date_wday values in single column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121062#M32547</link>
      <description>&lt;P&gt;Thank you... I ended up adding &lt;BR /&gt;
stats values(date_wday) AS dayserroroccurredon count(errortype) AS errCount BY errortype but I prefer your way as it is neater and easier to understand.&lt;BR /&gt;
Cheers and thanks again for your help&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 04:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-multi-date-wday-values-in-single-column/m-p/121062#M32547</guid>
      <dc:creator>ahogbin</dc:creator>
      <dc:date>2015-07-14T04:08:45Z</dc:date>
    </item>
  </channel>
</rss>

