<?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 Change Values Indexation in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-Values-Indexation/m-p/544631#M5354</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;the Value and Shipping fields have commas, and refer to the currency, there is a way to treat this data before indexing, so that this data is treated as a "." in place of the ","&lt;BR /&gt;&lt;BR /&gt;This makes it impossible when summing and averaging values.&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Change:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 17:01:54 GMT</pubDate>
    <dc:creator>leandromatperei</dc:creator>
    <dc:date>2021-03-20T17:01:54Z</dc:date>
    <item>
      <title>Change Values Indexation</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-Values-Indexation/m-p/544631#M5354</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;the Value and Shipping fields have commas, and refer to the currency, there is a way to treat this data before indexing, so that this data is treated as a "." in place of the ","&lt;BR /&gt;&lt;BR /&gt;This makes it impossible when summing and averaging values.&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Change:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 17:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-Values-Indexation/m-p/544631#M5354</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2021-03-20T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change Values Indexation</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-Values-Indexation/m-p/544662#M5357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216287"&gt;@leandromatperei&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use anonymize data method using sec command on indexers props.conf,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.1.2012/Data/Anonymizedata#Anonymize_data_with_a_sed_script" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.1.2012/Data/Anonymizedata#Anonymize_data_with_a_sed_script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below should work on your case;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
SEDCMD-fix_currency = s/Valor=(\d+),(\d{2})/Valor=\1.\2/g s/Frete=(\d+),(\d{2})/Frete=\1.\2/g&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 21 Mar 2021 05:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-Values-Indexation/m-p/544662#M5357</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-21T05:14:26Z</dc:date>
    </item>
  </channel>
</rss>

