<?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 for event type. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39895#M9179</link>
    <description>&lt;P&gt;that is a great suggestion, and will work well. Thanks martin.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2012 06:55:29 GMT</pubDate>
    <dc:creator>brettcave</dc:creator>
    <dc:date>2012-11-21T06:55:29Z</dc:date>
    <item>
      <title>regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39888#M9172</link>
      <description>&lt;P&gt;Hi, is it not possible to use a regex to determine an event type. I would like to usee something like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\d{4}-\d{1,2}-\d{1,2}T\d{2}:\d{2}:\d{2}.\d{3}. \| [A-Z]+ \|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to classify events.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39888#M9172</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2012-11-20T08:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39889#M9173</link>
      <description>&lt;P&gt;You can create an event type based on a search. In that search, use the regex command to match against your expression.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39889#M9173</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-20T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39890#M9174</link>
      <description>&lt;P&gt;How do you use a regex command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex _raw="(my regex)"

Message: Eventtype search string cannot be a search pipeline or contain a subsearch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39890#M9174</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2012-11-20T08:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39891#M9175</link>
      <description>&lt;P&gt;Bummer on the pipes. You can still use the regular expression, just go the long way by defining a field on that match, and create an eventtype based on that_field=*.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:13:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39891#M9175</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-20T09:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39892#M9176</link>
      <description>&lt;P&gt;It might be more informative if you can show us a more complete example. Such as the search with the entire regex.&lt;/P&gt;

&lt;P&gt;The 'regex' command in splunk is used to filter events. If you want to extract fields, use the 'rex' command.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 19:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39892#M9176</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2012-11-20T19:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39893#M9177</link>
      <description>&lt;P&gt;well I can't use any pipe command with event types, so it wouldn't work with &lt;CODE&gt;| rex ...&lt;/CODE&gt; either. I have events that are generated from 2 sources, and want to use the format of the sources as event type identifiers, so for example, source 1 formats as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2012-11-21T06:50:19.721Z | INFO | some message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and source 2 formats as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov 20 23:26:43 localhost Nov 20 23:26:43 ip-10-0-3-148 INFO | com.my.logger | thread
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Nov 2012 06:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39893#M9177</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2012-11-21T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39894#M9178</link>
      <description>&lt;P&gt;Both events are a sort of log4j / syslog custom brew, but with slightly different syntaxes, so the most effective way of categorizing them would be by rex. &lt;/P&gt;

&lt;P&gt;martin_mueller's suggestion of creating a field extractor based on the rex is a great suggestion, and would work well for this situation.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 06:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39894#M9178</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2012-11-21T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: regex for event type.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39895#M9179</link>
      <description>&lt;P&gt;that is a great suggestion, and will work well. Thanks martin.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 06:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-event-type/m-p/39895#M9179</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2012-11-21T06:55:29Z</dc:date>
    </item>
  </channel>
</rss>

