<?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: why my sourcetype time extraction  not take effect ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486268#M83252</link>
    <description>&lt;P&gt;thanks, i had try to use this log sample in a file to go through the ingest procedure, also use the same sourcetype ,the  _time is correct extracted.&lt;/P&gt;

&lt;P&gt;but i was using udp receive the true log come in, the same sourcetype not work as i wish.&lt;/P&gt;

&lt;P&gt;i don't know why .&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 10:47:04 GMT</pubDate>
    <dc:creator>meg_li</dc:creator>
    <dc:date>2020-03-05T10:47:04Z</dc:date>
    <item>
      <title>why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486258#M83242</link>
      <description>&lt;P&gt;first a log sample:&lt;BR /&gt;
{"offset":44469279,"messages":"&amp;lt;190&amp;gt;Mar  5 2020 06:40:55 WH-USG-MAIN %%01POLICY/6/POLICYPERMIT(l):vsys=public, protocol=6, source-ip=172.16.174.2, source-port=9054, destination-ip=10.251.30.14, destination-port=443, time=2020/3/5 14:40:55, source-zone=dmz, destination-zone=trust, rule-name=GRE.\u0000","fields":{"service":"network-log"},"client_ip":"10.251.0.254","time":"2020-03-05 14:41:20","prospector":{"type":"log"},"source":"/data/network/logs/network/buffer.b5a015d0cd6da0203206d47dc21494bdb.log","@timestamp":"2020-03-05T06:41:20.000Z","beat":{"version":"6.2.4","hostname":"network-log-input","name":"network-log-input"}}&lt;/P&gt;

&lt;P&gt;i want to extract ,"time":"2020-03-05 14:41:20" this part for my indexed time _time field&lt;/P&gt;

&lt;P&gt;you can see my sourcetype config like blow:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8489iA8BDAA3E92C6CAA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;but i can't get this time , still use the server local time for the _time field.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486258#M83242</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486259#M83243</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48878"&gt;@meg_li&lt;/a&gt;,&lt;BR /&gt;
TIME_PREFIX accept a regex and " is a special char so you should try with this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX  = \"time\":\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486259#M83243</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T04:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486260#M83244</link>
      <description>&lt;P&gt;&lt;CODE&gt;TIMESTAMP_FIELDS=time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486260#M83244</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-05T08:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486261#M83245</link>
      <description>&lt;P&gt;yes , i had try this  TIME_PREFIX  = \"time\":\"   but still can't work.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486261#M83245</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T09:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486262#M83246</link>
      <description>&lt;P&gt;yes , i had try this TIME_PREFIX = \"time\":\" but still can't work.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486262#M83246</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486263#M83247</link>
      <description>&lt;P&gt;Hi @meg_li,&lt;BR /&gt;
where do you put the props.conf file?&lt;BR /&gt;
it must be on the Indexers or (when present) on Heavy Forwarders, not on Universal Forwarders.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486263#M83247</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-05T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486264#M83248</link>
      <description>&lt;P&gt;i have only one splunk server ,  and i only config it in web ui,Source Types page, not the props.conf file&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486264#M83248</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486265#M83249</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48878"&gt;@meg_li&lt;/a&gt;,&lt;BR /&gt;
all these configurations that you do by web gui are in a configuration file called props.conf that you can find in $SPLUNK_HOME/etc/system/local or in $SPLUNK_HOME/etc/apps/app_name/local.&lt;/P&gt;

&lt;P&gt;I think that also the file source is in the same server.&lt;/P&gt;

&lt;P&gt;If yes, try to make ingestion using the web gui procedure, in this way you can immediately see if Splunk read correctly or not the log.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486265#M83249</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T04:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486266#M83250</link>
      <description>&lt;P&gt;sorry ,i  don't understand your meaning, i have not edit the props.conf file directly, only use the web ui, what i can do next , i still can't get the time field i want&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486266#M83250</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T10:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486267#M83251</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48878"&gt;@meg_li&lt;/a&gt;,&lt;BR /&gt;
don't worry, it was an explanation of what happens when you modify something using web gui.&lt;/P&gt;

&lt;P&gt;As I said, use the guided ingestion procedure, so you can immediately test if the TIME_PREFIX and TIME_FORMAT is correct, you can find it at Settings.&lt;BR /&gt;
Then choose the file to ingest and set the options TIME_PREFIX: in this way Splunk diplays the recognized timestamp and you can save the configuration in the used sourcetype.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486267#M83251</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T04:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486268#M83252</link>
      <description>&lt;P&gt;thanks, i had try to use this log sample in a file to go through the ingest procedure, also use the same sourcetype ,the  _time is correct extracted.&lt;/P&gt;

&lt;P&gt;but i was using udp receive the true log come in, the same sourcetype not work as i wish.&lt;/P&gt;

&lt;P&gt;i don't know why .&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486268#M83252</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486269#M83253</link>
      <description>&lt;P&gt;Hi @meg_li,&lt;BR /&gt;
try to configure your UDP input to use that sourcetype.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486269#M83253</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-05T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486270#M83254</link>
      <description>&lt;P&gt;it's the same sourcetype, i had created &lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486270#M83254</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-05T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486271#M83255</link>
      <description>&lt;P&gt;JSON is in valid format. You don't need to provide TIME_PREFIX and TIME_FORMAT. FIeld &lt;STRONG&gt;time&lt;/STRONG&gt; is already extracted so you just need provide TIMESTAMP_FIELDS = time. This will set _time to &lt;STRONG&gt;time&lt;/STRONG&gt; values.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/285663-screen-shot-2020-03-05-at-42625-pm.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486271#M83255</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-09-30T04:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486272#M83256</link>
      <description>&lt;P&gt;Hi @meg_li,&lt;BR /&gt;
see in the log wrong ingested what's the associated sourcetype and the log format, maybe it's different.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486272#M83256</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-03-05T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: why my sourcetype time extraction  not take effect ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486273#M83257</link>
      <description>&lt;P&gt;thanks everyone , all the configuration is correct, at last ,i restart splunk service, now it is extract ok now .&lt;BR /&gt;
:)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 01:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/why-my-sourcetype-time-extraction-not-take-effect/m-p/486273#M83257</guid>
      <dc:creator>meg_li</dc:creator>
      <dc:date>2020-03-06T01:36:09Z</dc:date>
    </item>
  </channel>
</rss>

