<?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 to alter data using SEDCMD in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255633#M49093</link>
    <description>&lt;P&gt;Okay so I seem to have got the logic, strange its not working. maybe we can fix that.&lt;BR /&gt;
Bu there is a different catch.&lt;/P&gt;

&lt;P&gt;Every time the doamin name may not be the given format &lt;BR /&gt;
(1)abc(2)def(3)ghif(4)&lt;/P&gt;

&lt;P&gt;It cane be  any of below 2 as well&lt;/P&gt;

&lt;P&gt;(1)abc(2)def(3)&lt;BR /&gt;
(1)abc(2)def(3)ghif(4)xyz(5)&lt;/P&gt;

&lt;P&gt;Any thoughts on that&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 17:18:26 GMT</pubDate>
    <dc:creator>Sayanta_Basak_I</dc:creator>
    <dc:date>2016-12-05T17:18:26Z</dc:date>
    <item>
      <title>How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255630#M49090</link>
      <description>&lt;P&gt;We have the DNS debug logs coming onto the indexer.&lt;BR /&gt;
Now each events will have an alpha-numeric pattern for 'domain name' in below fashion&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(1)abc(2)def(3)ghif(4)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Now i want the &lt;STRONG&gt;highlighted&lt;/STRONG&gt; data to be altered to a different format&lt;BR /&gt;
I have used the below SEDCMD in props.conf but is does not seem to alter it as required&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-win_dns = s/\(\d+\)/./g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Expectation: abc.def.ghif&lt;BR /&gt;
Reality: .abc.def.ghif.&lt;/P&gt;

&lt;P&gt;so it basically replaces all the '(digits)' with '.' But i want the extreme-placed integers to be converted to white space character&lt;BR /&gt;
Is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 16:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255630#M49090</guid>
      <dc:creator>Sayanta_Basak_I</dc:creator>
      <dc:date>2016-12-05T16:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255631#M49091</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-win_dns = s/(\(\d\))(\w+)(\(\d\))(\w+)(\(\d\))(\w+)(\(\d\))/\2\.\4\.\6/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255631#M49091</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-12-05T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255632#M49092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;It does not seem to work!&lt;BR /&gt;
Will it be possible for you to explain in short what logic you are using for this ?&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Sayanta B&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255632#M49092</guid>
      <dc:creator>Sayanta_Basak_I</dc:creator>
      <dc:date>2016-12-05T17:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255633#M49093</link>
      <description>&lt;P&gt;Okay so I seem to have got the logic, strange its not working. maybe we can fix that.&lt;BR /&gt;
Bu there is a different catch.&lt;/P&gt;

&lt;P&gt;Every time the doamin name may not be the given format &lt;BR /&gt;
(1)abc(2)def(3)ghif(4)&lt;/P&gt;

&lt;P&gt;It cane be  any of below 2 as well&lt;/P&gt;

&lt;P&gt;(1)abc(2)def(3)&lt;BR /&gt;
(1)abc(2)def(3)ghif(4)xyz(5)&lt;/P&gt;

&lt;P&gt;Any thoughts on that&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 17:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255633#M49093</guid>
      <dc:creator>Sayanta_Basak_I</dc:creator>
      <dc:date>2016-12-05T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255634#M49094</link>
      <description>&lt;P&gt;In that case, try three SEDCMD&lt;/P&gt;

&lt;P&gt;SEDCMD-remove_parens_num = s/((\d))/./g&lt;BR /&gt;
SEDCMD-remove_first_period = s/^(.)//g&lt;BR /&gt;
SEDCMD-remove_last_period = s/(.)$//g&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255634#M49094</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255635#M49095</link>
      <description>&lt;P&gt;I have the same issue with MS Active Directory DNS server log format. Does not work. No change at all. I am desperate.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255635#M49095</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2017-02-14T19:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255636#M49096</link>
      <description>&lt;P&gt;Ask in a separate/new question and I'd be happy to help you &lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 19:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255636#M49096</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-02-14T19:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255637#M49097</link>
      <description>&lt;P&gt;I need to solve the same issue as in this threat - regardin MS DNS log format.&lt;/P&gt;

&lt;P&gt;I have events like this:&lt;BR /&gt;
1. 2. 2017 20:19:22 0D80 PACKET  0000002548D040A0 UDP Rcv 10.17.81.32     7be7   Q [0001   D   NOERROR] A      (5)h42-m(3)sec(3)lab(0)&lt;/P&gt;

&lt;P&gt;The problem is with  "(5)h42-m(3)sec(3)lab(0)"&lt;/P&gt;

&lt;P&gt;I need to get events to look like this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;2. 2017 20:19:22 0D80 PACKET  0000002548D040A0 UDP Rcv 10.17.81.32     7be7   Q [0001   D   NOERROR] A      h42-m.sec.lab&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;When I implemented your suggestion in props.conf&lt;BR /&gt;
SEDCMD-remove_parens_num = s/((\d))/./g&lt;BR /&gt;
SEDCMD-remove_first_period = s/^(.)//g&lt;BR /&gt;
SEDCMD-remove_last_period = s/(.)$//g&lt;/P&gt;

&lt;P&gt;I stopped seeing my DNS logs in GUI permanently after restart of Splunk. I do not understand. If I removed your proposal, it's back again with wrong format.&lt;/P&gt;

&lt;P&gt;Any idea?&lt;/P&gt;

&lt;P&gt;Tomas&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255637#M49097</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2020-09-29T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to alter data using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255638#M49098</link>
      <description>&lt;P&gt;I solved your question.. Go post a new question with a description and I will post your answer&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 20:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-alter-data-using-SEDCMD-in-props-conf/m-p/255638#M49098</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-02-14T20:31:18Z</dc:date>
    </item>
  </channel>
</rss>

