<?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 parse through my sample CSV type log to graph field values by date? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-through-my-sample-CSV-type-log-to-graph-field/m-p/286809#M54782</link>
    <description>&lt;P&gt;Assuming that Splunk is able to parse the timestamp which is at the start of event and setting _time field with that, then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | _time ad* app bid...listall available fields ... | timechart span=1d values(*) as * 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Jun 2016 21:10:54 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-06-03T21:10:54Z</dc:date>
    <item>
      <title>How do I parse through my sample CSV type log to graph field values by date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-through-my-sample-CSV-type-log-to-graph-field/m-p/286808#M54781</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am having trouble finding a good way of parsing through my log entries to try and grab the key-value pairs for plotting on a graph.&lt;/P&gt;

&lt;P&gt;To be clear, I get one log a day in the format:&lt;/P&gt;

&lt;P&gt;2016-06-03 05:00:00 date=201606030000 [Audit Report],&lt;STRONG&gt;ad=998,adExtension=0,adGroup=160,adunit=0,advertiser=0,advertiserFunds=0,app=0,bidModifier=0,campaign=0,control=0,dataDictionary=1,demandDefinition=0,forexVersion=0,fundTransaction=0,publisher=0,section=0,site=0,summary=0,supplyDefinition=0,targetingAttribute=3682,trackingPixel=0&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I want to generate a graph where I have a line graph&lt;BR /&gt;
x-axis = Date&lt;BR /&gt;
y-axis = value&lt;/P&gt;

&lt;P&gt;I want a line representing the value for each key for each date so that I can observe the trends for each key (i.e. the ad, adExtension, adunit, etc.)&lt;/P&gt;

&lt;P&gt;However, I'm having trouble finding a good way of filtering out only the bolded section in the example log so that I can use it for graphing. I also have the flexibility of changing the format of my log if that would be the best solution.&lt;/P&gt;

&lt;P&gt;Help is greatly appreciated.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 19:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-through-my-sample-CSV-type-log-to-graph-field/m-p/286808#M54781</guid>
      <dc:creator>danielpa</dc:creator>
      <dc:date>2016-06-03T19:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse through my sample CSV type log to graph field values by date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-through-my-sample-CSV-type-log-to-graph-field/m-p/286809#M54782</link>
      <description>&lt;P&gt;Assuming that Splunk is able to parse the timestamp which is at the start of event and setting _time field with that, then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | _time ad* app bid...listall available fields ... | timechart span=1d values(*) as * 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jun 2016 21:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-parse-through-my-sample-CSV-type-log-to-graph-field/m-p/286809#M54782</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-06-03T21:10:54Z</dc:date>
    </item>
  </channel>
</rss>

