<?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: Remove non alphanumeric at the very start in props.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330385#M98340</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Thanks for the answer.&lt;BR /&gt;
Sorry to say, i am still seeing these characters non non alpha-numeric &lt;/P&gt;

&lt;P&gt;I also had to add in some lines as well as i need to grab out Fields&lt;/P&gt;

&lt;P&gt;1st try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SHOULD_LINEMERGE =false
LINE_BREAKER = ([\r\n]+)(?=\d+\|\d+\:\d+)
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
REPORT-MX-TIMING = REPORT-MX-TIMING2
EXTRACT-MX-TIMING = ^(?:[^\|\n]*\|){6} *-*(?P\d+\.\d+)\w+\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\s+\|
EXTRACT-MX-TIMING-Memory = \| *(?P\d+\.\d+)Mb*$
SEDCMD-removejunk = s/^(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2nd try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SHOULD_LINEMERGE =false
LINE_BREAKER = ([\r\n]+)(?=\d+\|\d+\:\d+)
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
SEDCMD-removejunk = s/^(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/    
REPORT-MX-TIMING = REPORT-MX-TIMING2
EXTRACT-MX-TIMING = ^(?:[^\|\n]*\|){6} *-*(?P\d+\.\d+)\w+\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\s+\|
EXTRACT-MX-TIMING-Memory = \| *(?P\d+\.\d+)Mb*$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the transform&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[REPORT-MX-TIMING2]
DELIMS = "|"
FIELDS = "Date","Time","UserName","ID","Context","Command"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Apr 2017 09:09:45 GMT</pubDate>
    <dc:creator>robertlynch2020</dc:creator>
    <dc:date>2017-04-18T09:09:45Z</dc:date>
    <item>
      <title>Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330373#M98328</link>
      <description>&lt;P&gt;Is it possible to remove all non alpha-numeric when taking in data in the props.conf?&lt;/P&gt;

&lt;P&gt;I have tried wiht regex but i cant seem to get it.&lt;/P&gt;

&lt;P&gt;This is the data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20151029|12:31:00|MUREXFO   |     1 |SessionCreate                 |MXDIS..&amp;amp;PATCHER                  |   0.21s|   0.22s|100%|  -0.01s|   0% |                                      |1065.44Mb
20151029|12:31:00|MUREXFO   |     2 |RequestDocument3              |MXD~'##ISPATCHER                  |   0.01s|   0.03s|100%|  -0.02s|   0% |                                      |1065.65Mb
20151029|12:31:00|MUREXFO   |     3 |RequestDocument3              |MXDISP..??ATCHER                  |   0.01s|   0.01s|100%|   0.00s|   0% |         
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regex i have - specifically the Command field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(?:[^\|\n]*\|){5}(?P&amp;lt;Command&amp;gt;\w+)| *-*(?P&amp;lt;Elapsed2&amp;gt;\d+\.\d+)\w+\|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what i have initally&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MXDIS..&amp;amp;PATCHER
MXD~'##ISPATCHER
MXDISP..??ATCHER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what i get &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MXDIS
MXD
MXDISP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what i want&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MXDISPATCHER
MXDSPATCHER
MXDISPATCHER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers for any help on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 11:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330373#M98328</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-14T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330374#M98329</link>
      <description>&lt;P&gt;Hi robertlynch2020,&lt;BR /&gt;
if you want to extract fields from a file like a csv see (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;)&lt;BR /&gt;
in other words, something like this:&lt;BR /&gt;
in props.conf (both on forwarder and indexer)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
INDEXED_EXTRACTIONS = CSV
FIELD_DELIMITER = |
FIELD_NAMES = field1,field2,fieldn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the easiest way to find the correct sourcetype definition is to download an example of your file and load it into a test index by web interface creating the correct sourcetype from an existing one.&lt;/P&gt;

&lt;P&gt;Beware that this props.conf must be both on Indexers and forwarders!&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 11:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330374#M98329</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-14T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330375#M98330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have the following, what i am looking a way is to imporve my regex, if that is possible to take out the non alpha-numeric up till a pipe&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
category = Custom
description = MX_TIMING
disabled = false
pulldown_type = true
REPORT-MX-TIMING = REPORT-MX-TIMING2
EXTRACT-MX-TIMING = ^(?:[^\|\n]*\|){6} *-*(?P&amp;lt;Elapsed&amp;gt;\d+\.\d+)\w+\| *-*(?P&amp;lt;CPU&amp;gt;\d+\.\d+)s\| *-*(?P&amp;lt;CPU_PER&amp;gt;\d+)%\| *-*(?P&amp;lt;RDB_COM&amp;gt;\d+\.\d+)s\| *-*(?P&amp;lt;RDB_COM_PER&amp;gt;\d+)%\s+\|
EXTRACT-MX-TIMING-Memory = \| *(?P&amp;lt;Memory&amp;gt;\d+\.\d+)Mb*$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Apr 2017 13:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330375#M98330</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-14T13:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330376#M98331</link>
      <description>&lt;P&gt;Hi robertlynch2020,&lt;BR /&gt;
Sorry, I'm not sure to had understood your need:&lt;BR /&gt;
do you want to remove only pipelines (|) and take the fields delimited by pipeline or do you want to delete all the non alpha-numeric chars like | or &amp;amp; or #?&lt;BR /&gt;
do you want to remove them or substitute them with another char?&lt;/P&gt;

&lt;P&gt;every way, in both the cases I suggest to use a delimited extraction so you can have your fields without using regex.&lt;BR /&gt;
after you can delete non alpha-numeric chars.&lt;/P&gt;

&lt;P&gt;to delete a char you can use SEDCMD command in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-remove_not_alpha = s/&amp;amp;|#\\|//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 13:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330376#M98331</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-14T13:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330377#M98332</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Thanks for you help on this.&lt;/P&gt;

&lt;P&gt;Below is a sample set of the data i have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 20151029|12:31:00|MUREXFO   |     1 |**SessionCreate**                 |**MXDIS..&amp;amp;PATCHER**                  |   0.21s|   0.22s|100%|  -0.01s|   0% |                                      |1065.44Mb
 20151029|12:31:00|MUREXFO   |     2 |**RequestDocument3**              |**MXD~'##ISPATCHER**                  |   0.01s|   0.03s|100%|  -0.02s|   0% |                                      |1065.65Mb
 20151029|12:31:00|MUREXFO   |     3 |**RequestDocument3**              |**MXDISP..??ATCHER**                  |   0.01s|   0.01s|100%|   0.00s|   0% |  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am able to pull out the data between the pipes, this is fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I have created a transform.&lt;/P&gt;

&lt;P&gt;The issues in the case of pipe 5(SessionCreate) and 6(MXDIS..&amp;amp;PATCHER) there can be non- A-to-Z or non 0-9. &lt;/P&gt;

&lt;P&gt;So i have &lt;STRONG&gt;MXDIS..&amp;amp;PATCHER&lt;/STRONG&gt; i want &lt;STRONG&gt;MXDISPATCHER&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I am looking to remove these&lt;/P&gt;

&lt;P&gt;This is what i have initially&lt;BR /&gt;
MXDIS..&amp;amp;PATCHER&lt;BR /&gt;
MXD~'##ISPATCHER&lt;BR /&gt;
MXDISP..??ATCHER&lt;/P&gt;

&lt;P&gt;This is what i want&lt;BR /&gt;
MXDISPATCHER&lt;BR /&gt;
MXDSPATCHER&lt;BR /&gt;
MXDISPATCHER&lt;/P&gt;

&lt;P&gt;I have tried your suggestion, but i am still getting non- A-Z and non 0-9&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
category = Custom
description = MX_TIMING
disabled = false
pulldown_type = true
REPORT-MX-TIMING = REPORT-MX-TIMING2
SEDCMD-remove_not_alpha = s/&amp;amp;|#\\|//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The transform i have is&lt;BR /&gt;
[REPORT-MX-TIMING2]&lt;BR /&gt;
DELIMS = "|"&lt;BR /&gt;
FIELDS = "Date","Time","UserName","ID","Context","Command"&lt;/P&gt;

&lt;P&gt;Cheers &lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330377#M98332</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-14T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330378#M98333</link>
      <description>&lt;P&gt;Hi robertlynch2020,&lt;BR /&gt;
Ok try this SEDCMD:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-remove_not_alpha = s/MXDIS\.\.\&amp;amp;PATCHER|MXD\~\'\#\#ISPATCHER|MXDISP\.\.\?\?ATCHER/MXDISPATCHER/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;regex should run, eventually create three SEDCMD, one for each string&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-remove_not_alpha1 = s/MXDIS\.\.\&amp;amp;PATCHER/MXDISPATCHER/g
SEDCMD-remove_not_alpha2 = s/MXD\~\'\#\#ISPATCHER/MXDISPATCHER/g
SEDCMD-remove_not_alpha3 = s/MXDISP\.\.\?\?ATCHER/MXDISPATCHER/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:22:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330378#M98333</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-14T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330379#M98334</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The issues with above is only a sample set, i will have millions of lines of data. All whit different lines and different patterns.&lt;/P&gt;

&lt;P&gt;I need a &lt;STRONG&gt;generic&lt;/STRONG&gt; way to strip non-alphanumeric&lt;/P&gt;

&lt;P&gt;for example &lt;BR /&gt;
Imput&lt;BR /&gt;
ABC.$%$123....///...///ABC&lt;BR /&gt;
Output&lt;BR /&gt;
ABC123ABC&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330379#M98334</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-14T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330380#M98335</link>
      <description>&lt;P&gt;if you can define some rules, you can execute all the transformations, otherwise you can only remove non alphabetical chars.&lt;BR /&gt;
if the transformations to perform are many but always the same, you could create a lookup and then transform them at search time.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330380#M98335</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-14T14:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330381#M98336</link>
      <description>&lt;P&gt;Do you need to strip these characters out of the input BEFORE the data is indexed OR do you need to strip these out of each event AS each event is indexed OR do you need to strip these out of the fields at search time (after the event is indexed)?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2017 23:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330381#M98336</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-15T23:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330382#M98337</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Ideally i want to do it AS it is been indexed. This was i can also view _raw if i need to..&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2017 14:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330382#M98337</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-16T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330383#M98338</link>
      <description>&lt;P&gt;However if AS was not possible i would  BEFORE would work as well. &lt;/P&gt;

&lt;P&gt;Cheers again &lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 19:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330383#M98338</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-17T19:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330384#M98339</link>
      <description>&lt;P&gt;Try this for props.conf on your indexer/heavy forwarder.&lt;BR /&gt;
20151029|12:31:00|MUREXFO   |     1 |SessionCreate                 |MXDIS..&amp;amp;PATCHER                  |   0.21s|   0.22s|100%|  -0.01s|   0% |&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SHOULD_LINEMERGE =false
LINE_BREAKER = ([\r\n]+)(?=\d+\|\d+\:\d+)
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
SEDCMD-removejunk = s/^(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Apr 2017 20:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330384#M98339</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-17T20:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330385#M98340</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Thanks for the answer.&lt;BR /&gt;
Sorry to say, i am still seeing these characters non non alpha-numeric &lt;/P&gt;

&lt;P&gt;I also had to add in some lines as well as i need to grab out Fields&lt;/P&gt;

&lt;P&gt;1st try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SHOULD_LINEMERGE =false
LINE_BREAKER = ([\r\n]+)(?=\d+\|\d+\:\d+)
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
REPORT-MX-TIMING = REPORT-MX-TIMING2
EXTRACT-MX-TIMING = ^(?:[^\|\n]*\|){6} *-*(?P\d+\.\d+)\w+\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\s+\|
EXTRACT-MX-TIMING-Memory = \| *(?P\d+\.\d+)Mb*$
SEDCMD-removejunk = s/^(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2nd try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SHOULD_LINEMERGE =false
LINE_BREAKER = ([\r\n]+)(?=\d+\|\d+\:\d+)
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
SEDCMD-removejunk = s/^(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/    
REPORT-MX-TIMING = REPORT-MX-TIMING2
EXTRACT-MX-TIMING = ^(?:[^\|\n]*\|){6} *-*(?P\d+\.\d+)\w+\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\| *-*(?P\d+\.\d+)s\| *-*(?P\d+)%\s+\|
EXTRACT-MX-TIMING-Memory = \| *(?P\d+\.\d+)Mb*$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the transform&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[REPORT-MX-TIMING2]
DELIMS = "|"
FIELDS = "Date","Time","UserName","ID","Context","Command"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 09:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330385#M98340</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-04-18T09:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove non alphanumeric at the very start in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330386#M98341</link>
      <description>&lt;P&gt;Try this, assuming that your &lt;CODE&gt;sourcetype&lt;/CODE&gt; is &lt;CODE&gt;MX_TIMING&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING]
SEDCMD-removejunk = s/(?:^|[\r\n])(([^\|]+\|){5})([A-z]+)[^A-Z]*([A-z]+\s+\|)/\1\3\4/g
LINE_BREAKER = ([\r\n]+\s*)(?=\d+\|\d+\:\d+)
SHOULD_LINEMERGE = false
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d|%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 17
REPORT-MX_TIMING = MX_TIMING_SearchTimeFieldExtractions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MX_TIMING_SearchTimeFieldExtractions]
DELIMS = "|"
FIELDS = "Date","Time","UserName","ID","Context","Command"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will need to be deployed to your Heavy Forwarders, Indexers, and Search Heads.  Then all Splunk instances must be restarted on those servers.  These changes will only effect events that get indexed after the restarts; older events will stay broken.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 20:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-non-alphanumeric-at-the-very-start-in-props-conf/m-p/330386#M98341</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-22T20:21:27Z</dc:date>
    </item>
  </channel>
</rss>

