<?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 How to configure SEDCMD in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196633#M39119</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I am having a really hard time figuring out how to get the sedcmd to work in props.conf. I'd appreciate any help you can lend. Here is an example of my config:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../syslog_logs/*srx*/user.info.log]
SEDCMD-removeunwanted1 = s/\s(src-nat-rule-name=\"[^\"]+\")//
SEDCMD-removeunwanted2 = s/\s(source-zone-name=\"[^\"]+\")//
SEDCMD-removeunwanted3 = s/\s(destination-zone-name=\"[^\"]+\")//
SEDCMD-alter1 = s/destination/dst/g
SEDCMD-alter2 = s/source/src/g
SEDCMD-alter3 = s/address/ip/g
SEDCMD-alter4 = 's/protocol-id="17"/UDP/'
SEDCMD-alter5 = 's/protocol-id="6"/TCP/'
SEDCMD-alter6 = 's/protocol-id="1"/ICMP/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The point of this is to simplify our logs from Juniper SRXs. When I do a "--debug props list | grep SEDCMD", I see the commands listed. Not sure what I'm doing incorrectly, but have a couple of questions in addition to any advice you guys have.&lt;/P&gt;

&lt;P&gt;1.) Does this props.conf have to be configured on the forwarder or the indexer? I'd prefer to do this on the forwarder if possible.&lt;BR /&gt;
2.) Does restarting the splunk forwarder engage the changes? Or is there something else I need to do?&lt;BR /&gt;
3.) Is there any way to monitor logs as they come into splunk? (similar to tail -f)&lt;BR /&gt;
4.) Do you see anything wrong with my syntax?&lt;/P&gt;

&lt;P&gt;Thanks in advance guys! I really appreciate the help!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2015 14:48:56 GMT</pubDate>
    <dc:creator>jpena323</dc:creator>
    <dc:date>2015-01-21T14:48:56Z</dc:date>
    <item>
      <title>How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196633#M39119</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I am having a really hard time figuring out how to get the sedcmd to work in props.conf. I'd appreciate any help you can lend. Here is an example of my config:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../syslog_logs/*srx*/user.info.log]
SEDCMD-removeunwanted1 = s/\s(src-nat-rule-name=\"[^\"]+\")//
SEDCMD-removeunwanted2 = s/\s(source-zone-name=\"[^\"]+\")//
SEDCMD-removeunwanted3 = s/\s(destination-zone-name=\"[^\"]+\")//
SEDCMD-alter1 = s/destination/dst/g
SEDCMD-alter2 = s/source/src/g
SEDCMD-alter3 = s/address/ip/g
SEDCMD-alter4 = 's/protocol-id="17"/UDP/'
SEDCMD-alter5 = 's/protocol-id="6"/TCP/'
SEDCMD-alter6 = 's/protocol-id="1"/ICMP/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The point of this is to simplify our logs from Juniper SRXs. When I do a "--debug props list | grep SEDCMD", I see the commands listed. Not sure what I'm doing incorrectly, but have a couple of questions in addition to any advice you guys have.&lt;/P&gt;

&lt;P&gt;1.) Does this props.conf have to be configured on the forwarder or the indexer? I'd prefer to do this on the forwarder if possible.&lt;BR /&gt;
2.) Does restarting the splunk forwarder engage the changes? Or is there something else I need to do?&lt;BR /&gt;
3.) Is there any way to monitor logs as they come into splunk? (similar to tail -f)&lt;BR /&gt;
4.) Do you see anything wrong with my syntax?&lt;/P&gt;

&lt;P&gt;Thanks in advance guys! I really appreciate the help!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 14:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196633#M39119</guid>
      <dc:creator>jpena323</dc:creator>
      <dc:date>2015-01-21T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196634#M39120</link>
      <description>&lt;P&gt;It needs to be done on a Splunk instance doing parsing. That'd be an Indexer or Heavy Forwarder, but not a Universal Forwarder.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196634#M39120</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-01-21T15:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196635#M39121</link>
      <description>&lt;P&gt;Go through the props.conf example on below link&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Coming to your questions&lt;BR /&gt;
 1. SED script works at index time, ie, it executed on _raw field. so answer is Indexer&lt;BR /&gt;
 2. Indexer restart is required&lt;BR /&gt;
 3. Use some sample log file and you can use preview option to verify all your rules.&lt;BR /&gt;
 4. refer to document, If you are replacing strings then it should be SED-alter=y/string1/string2/&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196635#M39121</guid>
      <dc:creator>sgundeti</dc:creator>
      <dc:date>2015-01-21T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196636#M39122</link>
      <description>&lt;P&gt;thanks - im going to try to add this to the indexer and see if it works&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 17:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196636#M39122</guid>
      <dc:creator>jpena323</dc:creator>
      <dc:date>2015-01-21T17:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196637#M39123</link>
      <description>&lt;P&gt;Does it not depend on where the data parsing phase is executed?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196637#M39123</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-11-02T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196638#M39124</link>
      <description>&lt;P&gt;Can this be used in an intermediate forwarder?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 13:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-SEDCMD-in-props-conf/m-p/196638#M39124</guid>
      <dc:creator>Marcia_Piccione</dc:creator>
      <dc:date>2018-12-28T13:25:43Z</dc:date>
    </item>
  </channel>
</rss>

