<?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: combining date fields into a single field for charting. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98358#M5452</link>
    <description>&lt;P&gt;Yes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | strcat date_year "-" date_month "-" date_mday date_str
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval datestr=date_year."-".date_month."-".date_mday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval datestr=strftime(_time, "%Y-%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would suggest to use the last one, as it is possible that the date_* fields are missing from the event.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2010 02:36:53 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-12-03T02:36:53Z</dc:date>
    <item>
      <title>combining date fields into a single field for charting.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98357#M5451</link>
      <description>&lt;P&gt;Is it possible to somehow combine the date_year, date_month and date_mday fields into a single date field?&lt;/P&gt;

&lt;P&gt;I need to do this for charting purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 02:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98357#M5451</guid>
      <dc:creator>rhuss</dc:creator>
      <dc:date>2010-12-03T02:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: combining date fields into a single field for charting.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98358#M5452</link>
      <description>&lt;P&gt;Yes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | strcat date_year "-" date_month "-" date_mday date_str
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval datestr=date_year."-".date_month."-".date_mday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval datestr=strftime(_time, "%Y-%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would suggest to use the last one, as it is possible that the date_* fields are missing from the event.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 02:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98358#M5452</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-12-03T02:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: combining date fields into a single field for charting.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98359#M5453</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval full_date = date_year." ".date_month." ".date_mday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can format that in whatever way you want, the area between " " is the seperator.&lt;/P&gt;

&lt;P&gt;This was found under the eval command reference &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Eval" rel="nofollow"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 02:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/combining-date-fields-into-a-single-field-for-charting/m-p/98359#M5453</guid>
      <dc:creator>justinhart</dc:creator>
      <dc:date>2010-12-03T02:37:21Z</dc:date>
    </item>
  </channel>
</rss>

