<?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: Define identification field in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544585#M5342</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is in the query and how can I make this definition directly in sourcetype? I have a thousand line file that follows this same pattern.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 00:08:27 GMT</pubDate>
    <dc:creator>leandromatperei</dc:creator>
    <dc:date>2021-03-20T00:08:27Z</dc:date>
    <item>
      <title>Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544580#M5340</link>
      <description>&lt;P&gt;Guys,&lt;BR /&gt;&lt;BR /&gt;I need support, I need to upload these files and process this data, but I need them to be indexed by the &lt;STRONG&gt;_time&lt;/STRONG&gt; field, I was unable to use the standard type of pre-defined data. Can you help me?&lt;BR /&gt;&lt;BR /&gt;Another detail, the &lt;STRONG&gt;Valor&lt;/STRONG&gt; and &lt;STRONG&gt;Frete&lt;/STRONG&gt; fields have commas, and refer to currency, there is a way to treat this data before indexing, so that this data is treated as &lt;STRONG&gt;"."&lt;/STRONG&gt; for example ?&lt;BR /&gt;&lt;BR /&gt;Example file:&amp;nbsp;&lt;A href="https://www.dropbox.com/s/exh7g1glumxcetr/log.txt?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/exh7g1glumxcetr/log.txt?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 22:41:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544580#M5340</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2021-03-19T22:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544582#M5341</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal | head 1 | fields _raw
| eval _raw="IP=189.41.40.129,Produto=\"Test1\",Valor=179,00,Categoria=Banho,Campanha=1,Vendeu=1,MetododeCompra=1,Bandeira=1,Transportadora=2,Frete=18,57,\"_time\"2021/01/25 19:20:37.374\"
IP=201.0.205.197,Produto=\"Test2\",Valor=123,98,Categoria=Jogos,Campanha=1,Vendeu=0,MetododeCompra=0,Bandeira=0,Transportadora=5,Frete=12,58,\"_time\"2021/01/25 19:20:38.977\"
IP=187.125.147.178,Produto=\"Teste3\",Valor=139,90,Categoria=Cozinha,Campanha=1,Vendeu=1,MetododeCompra=1,Bandeira=1,Transportadora=3,Frete=14,27,\"_time\"2021/01/25 19:20:38.977\"
IP=187.115.202.233,Produto=\"Test4\",Valor=139,90,Categoria=Cozinha,Campanha=1,Vendeu=1,MetododeCompra=1,Bandeira=1,Transportadora=2,Frete=14,51,\"_time\"2021/01/25 19:20:39.579\"
IP=187.111.15.221,Produto=\"Test5\",Valor=164,00,Categoria=Banho,Campanha=2,Vendeu=1,MetododeCompra=1,Bandeira=1,Transportadora=1,Frete=16,81,\"_time\"2021/01/25 19:20:40.580\""
| multikv noheader=t
| fields _raw
| rex mode=sed "s/\"_time\"/Time=/ s/=(\d.*?)(?=,[A-Z])/=\"\1\"/g"
| rex "(?&amp;lt;time&amp;gt;\d{4}/.*)"
| eval _time=strptime(time,"%Y/%m/%d %T.%3N")
| kv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 23:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544582#M5341</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-03-19T23:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544585#M5342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is in the query and how can I make this definition directly in sourcetype? I have a thousand line file that follows this same pattern.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 00:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544585#M5342</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2021-03-20T00:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544587#M5343</link>
      <description>&lt;P&gt;How about SEDCMD with props.conf.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 00:16:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544587#M5343</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-03-20T00:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544592#M5344</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I defined it that way within the sourcetype and it almost went, I just couldn't get the same match for some fields: Category and Shipping&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
CHARSET=AUTO
disabled=false
TIME_FORMAT=%Y/%m/%d  %H.%.M:%.S.%3N
TIME_PREFIX=_time
SEDCMD=s/=(\d.*?)(?=,[A-Z])/="\1"/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="YQaNob"&gt;&lt;DIV class="tw-src-ltr"&gt;&lt;DIV class="oSioSc"&gt;&lt;DIV&gt;&lt;DIV class="g9WsWb"&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dURPtb"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="dURPtb"&gt;How can I leave these fields the same way?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="KFFQ0c"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 20 Mar 2021 00:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544592#M5344</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2021-03-20T00:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Define identification field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544601#M5345</link>
      <description>&lt;P&gt;If you have SECCMD do what I'm doing and search in smart mode, you're basically good to go.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 09:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Define-identification-field/m-p/544601#M5345</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-03-20T09:37:47Z</dc:date>
    </item>
  </channel>
</rss>

