<?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: Help with field extraction for specific start line for log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437399#M124549</link>
    <description>&lt;P&gt;Regex101.com as shown in the links they provided will be your godsend when it comes to creating and testing regexes.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 16:17:13 GMT</pubDate>
    <dc:creator>michael_schmidt</dc:creator>
    <dc:date>2019-08-09T16:17:13Z</dc:date>
    <item>
      <title>Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437394#M124544</link>
      <description>&lt;P&gt;Trying to extract the value of the 1st WORD in line 3 of each log (i.e. FAILURE or SUCCESS) and put that into a field extraction called "Status". The 3rd line will start with that word, then be followed by a colon, then a space. &lt;BR /&gt;
REGEX skills still lacking. Trying to learn. Help anyone???&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;Informational  August 9, 2019 9:45:40 AM CDT
Transaction "Name of Transaction" Summary:
FAILURE: Message failed at August 09, 2019 09:45:40 AM
Inbound transaction
Error scheduling linked transaction (TransactionName): Attempt to run TransactionName as linked job but it has 'Do Not Run' set.

&amp;gt;Informational  August 9, 2019 9:50:02 AM CDT
Transaction "Name of Transaction" Summary:
SUCCESS: TransactionName was successful at August 09, 2019 09:50:02 AM
Outbound transaction
Source files FTP'd from SOURCE to DESTINATION
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437394#M124544</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-08-09T15:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437395#M124545</link>
      <description>&lt;P&gt;Hi joesrepsolc,&lt;BR /&gt;
if your values are only SUCCESS or FAILURE, you could use something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)(?&amp;lt;my_field&amp;gt;FAILURE|SUCCESS):
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;test it at &lt;A href="https://regex101.com/r/UEahRa/1"&gt;https://regex101.com/r/UEahRa/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437395#M124545</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-08-09T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437396#M124546</link>
      <description>&lt;P&gt;This will give you whatever is after "Summary:" followed by 1 more more spaces:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Summary:\s+(?&amp;lt;Status&amp;gt;[^:]+):"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="https://regex101.com/r/UL0PIo/1"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437396#M124546</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-08-09T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437397#M124547</link>
      <description>&lt;P&gt;WOW. that was fast and works perfect! dissecting the regex to understand. Always impressed on how helpful everyone is on this site. So thank you!&lt;/P&gt;

&lt;P&gt;I was stuck on using the carrot ^ at the beginning of the line, guess that would still work though, just learning more about regex use in Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437397#M124547</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-08-09T15:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437398#M124548</link>
      <description>&lt;P&gt;This works great for inline searches too. I was trying not to have to do this in every search though, so the field extraction method is working best for me. Still appreciate the quick answers too jpolvino. &lt;/P&gt;

&lt;P&gt;I see the logic you're using too. So anything after the "Summary: " up to the next line up to the ":" right? Man, I need to understand this stuff better.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437398#M124548</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-08-09T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437399#M124549</link>
      <description>&lt;P&gt;Regex101.com as shown in the links they provided will be your godsend when it comes to creating and testing regexes.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437399#M124549</guid>
      <dc:creator>michael_schmidt</dc:creator>
      <dc:date>2019-08-09T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437400#M124550</link>
      <description>&lt;P&gt;Glad Giuseppe's search worked for you. The strategy I used above is handy for may searches, where you are looking for a bunch of characters that are NOT something. In my example, the [^:]+ means "match 1 more more characters that does not include colon." This strategy is invaluable when working with delimiters such as space, comma, double quote, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 17:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437400#M124550</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-08-09T17:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437401#M124551</link>
      <description>&lt;P&gt;i am using that, just hard to figure out which commands/syntax works. When I copy/paste in the ones from this helpful community, they always work perfectly (annoying... haha). It's just getting to the point to know when to use what solution. I'll get there!!!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 17:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437401#M124551</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-08-09T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437402#M124552</link>
      <description>&lt;P&gt;love it. I still get mixed up between characters, and whole words. Still learning. But this logic is very helpful. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 17:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437402#M124552</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-08-09T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with field extraction for specific start line for log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437403#M124553</link>
      <description>&lt;P&gt;Always at your disposal!&lt;BR /&gt;
Bye and see next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 06:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-field-extraction-for-specific-start-line-for-log/m-p/437403#M124553</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-08-10T06:29:28Z</dc:date>
    </item>
  </channel>
</rss>

