<?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: Regex using transforms.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51184#M12330</link>
    <description>&lt;P&gt;Ah this worked great.  Thanks....good to know for the future!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2012 16:46:53 GMT</pubDate>
    <dc:creator>gnovak</dc:creator>
    <dc:date>2012-01-17T16:46:53Z</dc:date>
    <item>
      <title>Regex using transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51181#M12327</link>
      <description>&lt;P&gt;I'm not quite sure if I'm doing this right or going in the right direction.  I have a log where the results are a bunch of numbers.  Each number represents the time it took for a specific command to run.  The first number represents a command, the second number represents another command, etc.  &lt;/P&gt;

&lt;P&gt;Here's what the line looks like:&lt;/P&gt;

&lt;P&gt;2012-01-11 19:00:05+00 | eap.someregistry.net                   |          5 |            30 |            4 |           21 |             7 |            45 |               11 |              6 |             13 |           2&lt;/P&gt;

&lt;P&gt;I have successfully extracted the eap.someregistry.net and labeled it "server".  However I want to extract the numbers as well and have them labeled based on the command that they represent.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;&lt;BR /&gt;
5 would be Login&lt;BR /&gt;
30 would be Delete&lt;BR /&gt;
4 would be Create&lt;BR /&gt;
etc.&lt;/P&gt;

&lt;P&gt;I was thinking of using transforms.conf and props.conf for this but I'm not quite sure how to go about this.  I don't have a ton of experience using these files for this type of extraction.&lt;/P&gt;

&lt;P&gt;I'm reading about props and transforms right now but figured I'd ask this question while I read more.  What's the best way to go about doing this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 19:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51181#M12327</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-01-13T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regex using transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51182#M12328</link>
      <description>&lt;P&gt;So far I've got a monster regex pulling out all of the numbers but I might see about putting this into files...just not sure how to go about doing it..&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 22:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51182#M12328</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-01-13T22:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex using transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51183#M12329</link>
      <description>&lt;P&gt;You can perform a search time named field extraction with something like this in props.conf&lt;/P&gt;

&lt;P&gt;Replace the fields names(command1, command2 etc...) with your specific command names&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
EXTRACT-extract_my_fields = \|\s(?&amp;lt;command1&amp;gt;\d+)\s\|\s(?&amp;lt;command2&amp;gt;\d+)\s\|\s(?&amp;lt;command3&amp;gt;\d+)\s\|\s(?&amp;lt;command4&amp;gt;\d+)\s\|\s(?&amp;lt;command5&amp;gt;\d+)\s\|\s(?&amp;lt;command6&amp;gt;\d+)\s\|\s(?&amp;lt;command7&amp;gt;\d+)\s\|\s(?&amp;lt;command8&amp;gt;\d+)\s\|\s(?&amp;lt;command9&amp;gt;\d+)\s\|\s(?&amp;lt;command10&amp;gt;\d+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jan 2012 01:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51183#M12329</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-01-14T01:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex using transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51184#M12330</link>
      <description>&lt;P&gt;Ah this worked great.  Thanks....good to know for the future!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-using-transforms-conf/m-p/51184#M12330</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-01-17T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

