<?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: Linegraph with Datestring / Convert Timestamp to _time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129393#M35182</link>
    <description>&lt;P&gt;I just tried something out:  I used the example above, but used a Unixtimestamp as Date and tried to use this timestamp in a timechart.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;... | rename _time AS Eventtime | rename Date as _time | ... | timechart span=1d ... |  where _time&amp;lt;=now() AND _time&amp;gt;=strptime("01.10.2013", "%d.%m.%Y")&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In my opinion it seems to work. If somebody knows that this kind of transformation causes problems I haven't found out yet, please let me know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2013 13:38:21 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2013-11-06T13:38:21Z</dc:date>
    <item>
      <title>Linegraph with Datestring / Convert Timestamp to _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129390#M35179</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've got a lookupfile with a timestamp (in seconds) and other entries. I've converted the timestamp into a datestring to make it readable (eval Date=strftime(timestamp), "%d.%m.%Y" ) and used  a &lt;STRONG&gt;| stats ... by Date&lt;/STRONG&gt; command. In a table thats fine, all stats are grouped by the Date. &lt;/P&gt;

&lt;P&gt;But when I want to create a Visualization the entries on the X-Axis (the Dates) are not readable. Is there a way to avoid this? Or perhaps it's useful/possible to convert the timestamp to "_time" here and create everything as a timechart?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your ideas.&lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129390#M35179</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-05T17:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linegraph with Datestring / Convert Timestamp to _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129391#M35180</link>
      <description>&lt;P&gt;Could you post some sample data from the table your got after your stats command?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129391#M35180</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-05T17:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linegraph with Datestring / Convert Timestamp to _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129392#M35181</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;/P&gt;

&lt;P&gt;the table looks like this in the end (unfortunately i don't know how to add a table here...)&lt;/P&gt;

&lt;P&gt;Date | A  |  B  |  C &lt;/P&gt;

&lt;P&gt;27.10.2013  | 100   |   67   | 67&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 18:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129392#M35181</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-05T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Linegraph with Datestring / Convert Timestamp to _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129393#M35182</link>
      <description>&lt;P&gt;I just tried something out:  I used the example above, but used a Unixtimestamp as Date and tried to use this timestamp in a timechart.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;... | rename _time AS Eventtime | rename Date as _time | ... | timechart span=1d ... |  where _time&amp;lt;=now() AND _time&amp;gt;=strptime("01.10.2013", "%d.%m.%Y")&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In my opinion it seems to work. If somebody knows that this kind of transformation causes problems I haven't found out yet, please let me know &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 13:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Linegraph-with-Datestring-Convert-Timestamp-to-time/m-p/129393#M35182</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-06T13:38:21Z</dc:date>
    </item>
  </channel>
</rss>

