<?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 Importing Year/Month field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281332#M96362</link>
    <description>&lt;P&gt;I'm trying to import a csv format using splunk.&lt;/P&gt;

&lt;P&gt;The timestamp of log is in the format YYYY/MM.&lt;/P&gt;

&lt;P&gt;By default, splunk fails to generate timestamp since there is not hour, minute, and second information.&lt;/P&gt;

&lt;P&gt;An example of an event (_raw) looks like this:&lt;/P&gt;

&lt;P&gt;AB;ZZCAD;2016/01;22.79000000&lt;BR /&gt;
I think that this should be working:&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%Y/%m&lt;BR /&gt;
TIME_PREFIX=(.){9}&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=7&lt;BR /&gt;
What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:59:34 GMT</pubDate>
    <dc:creator>bitfhacker</dc:creator>
    <dc:date>2020-09-29T10:59:34Z</dc:date>
    <item>
      <title>Importing Year/Month field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281332#M96362</link>
      <description>&lt;P&gt;I'm trying to import a csv format using splunk.&lt;/P&gt;

&lt;P&gt;The timestamp of log is in the format YYYY/MM.&lt;/P&gt;

&lt;P&gt;By default, splunk fails to generate timestamp since there is not hour, minute, and second information.&lt;/P&gt;

&lt;P&gt;An example of an event (_raw) looks like this:&lt;/P&gt;

&lt;P&gt;AB;ZZCAD;2016/01;22.79000000&lt;BR /&gt;
I think that this should be working:&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%Y/%m&lt;BR /&gt;
TIME_PREFIX=(.){9}&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=7&lt;BR /&gt;
What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281332#M96362</guid>
      <dc:creator>bitfhacker</dc:creator>
      <dc:date>2020-09-29T10:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Year/Month field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281333#M96363</link>
      <description>&lt;P&gt;TIME_FORMAT=%Y/%m&lt;BR /&gt;
TIME_PREFIX=(.){9}&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=7&lt;/P&gt;

&lt;P&gt;Hi, do you have only these above three lines?!?!&lt;/P&gt;

&lt;P&gt;Did you try adding &lt;BR /&gt;
SHOULD_LINEMERGE&lt;BR /&gt;
LINE_BREAKER&lt;/P&gt;

&lt;P&gt;For TIME:PREFIX, please try - &lt;BR /&gt;
TIME:PREFIX=\w{2}\;\w{5}\;&lt;/P&gt;

&lt;P&gt;what sourcetype, source you are using for this file?!?  Can you please copy paste the full props.conf please&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281333#M96363</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T10:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Year/Month field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281334#M96364</link>
      <description>&lt;P&gt;You are right. I should have posted all my props.conf.&lt;/P&gt;

&lt;P&gt;I'm using the web (have no permission to edit props.conf directly), but the results should be the same.&lt;/P&gt;

&lt;P&gt;Here is my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true
TIME_FORMAT=%Y/%m
TIME_PREFIX=(.){9}
MAX_TIMESTAMP_LOOKAHEAD=7
LINE_BREAKER=[\r\n]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried with LINE_BREAKER and SHOULD_LINEMERGE but had no success.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281334#M96364</guid>
      <dc:creator>bitfhacker</dc:creator>
      <dc:date>2020-09-29T11:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Year/Month field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281335#M96365</link>
      <description>&lt;P&gt;Is this a bug from Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 00:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-Year-Month-field/m-p/281335#M96365</guid>
      <dc:creator>bitfhacker</dc:creator>
      <dc:date>2016-09-21T00:03:25Z</dc:date>
    </item>
  </channel>
</rss>

