<?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: How do you create a regex that keeps only specific events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407496#M117694</link>
    <description>&lt;P&gt;In props.conf on Heavy Forwarder add the following:&lt;BR /&gt;
    [source::/var/log/messages]&lt;BR /&gt;
    TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;In the transforms.conf add the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = log\.UatErrorLogger\s\-\s\|ERROR\|
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Feb 2019 22:00:22 GMT</pubDate>
    <dc:creator>mydog8it</dc:creator>
    <dc:date>2019-02-27T22:00:22Z</dc:date>
    <item>
      <title>How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407491#M117689</link>
      <description>&lt;P&gt;I'm looking to send junk data to nullque on our heavy forwarder and I only want to key in on specific events in the raw data.  I'm looking for a regex to only forward data that contains events below.  I'm looking to key on the first few events, since the junk data does not contain the piped ERROR event.&lt;/P&gt;

&lt;P&gt;So, if event contains:&lt;BR /&gt;
&lt;STRONG&gt;"ERROR [WebContainer : 13] [2018-11-29 13:44:23,800] log.UatErrorLogger - |ERROR|"&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I want to forward all event data to the indexers.  Should we key on "&lt;EM&gt;log.UatErrorLogger - |ERROR|&lt;/EM&gt;"?&lt;/P&gt;

&lt;P&gt;Keep:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR [WebContainer : 13] [2018-11-29 13:44:23,800] log.UatErrorLogger - |ERROR|2018-11-29 13:44:23.800 - CST|112|P112736|ERROR|||9bb9e341-bcc4-4902-832d-74c0764237e7||COMPLETED|server14.prod.localserver14||-2|SRM-44116A-MSG|Thread[WebContainer : 13,5,main]|2018-11-29 13:44:23.800 - CST||null|10.237.165.50|||IPV6|SRM|RELEASE|WAS8|BUSINESS_TIER|2.0|UNK|||||||||
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 21:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407491#M117689</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2018-11-29T21:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407492#M117690</link>
      <description>&lt;P&gt;Can you add samples of what dhould be discarded..&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 21:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407492#M117690</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-11-29T21:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407493#M117691</link>
      <description>&lt;P&gt;It seems that we need to keep - &lt;CODE&gt;^.*(\|ERROR\|)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 21:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407493#M117691</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-11-29T21:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407494#M117692</link>
      <description>&lt;P&gt;this is what will need to be sent to nullque&lt;/P&gt;

&lt;P&gt;ERROR [WebContainer : 9] [2018-11-29 19:11:54,023] log.UatErrorLogger - 6008a93a-ceae-4ff2-a0cb-79fe6371cb4c&lt;BR /&gt;
java.lang.NumberFormatException: empty String&lt;BR /&gt;
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1855)&lt;BR /&gt;
    at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:135)&lt;BR /&gt;
    at java.lang.Float.parseFloat(Float.java:462)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.runtime.DataTypeValue.&lt;INIT&gt;(DataTypeValue.java:60)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.runtime.BaseFnRuleImpl.getDataValue(BaseFnRuleImpl.java:475)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.runtime.generatedrules.AuthoredRule1325000000094104.executeRule(AuthoredRule1325000000094104.java:24)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.runtime.BaseFnRuleImpl.doExecuteRule(BaseFnRuleImpl.java:73)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.calcmgr.JavaCalcMgrContextImpl.performCalcs(JavaCalcMgrContextImpl.java:435)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.calcmgr.JavaCalcMgrContextImpl.runAllCalcs(JavaCalcMgrContextImpl.java:205)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.calcmgr.JavaCalcMgrContextImpl.runAllCalcs(JavaCalcMgrContextImpl.java:160)&lt;BR /&gt;
    at com.metavante.dx.services.common.utils.UATRulesHelper.executeRules(UATRulesHelper.java:328)&lt;BR /&gt;
    at com.metavante.dx.services.common.handlers.WorkflowRulesHandler.executeHandler(WorkflowRulesHandler.java:178)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.executeHandler(SequenceProcessor.java:159)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.executeWorkFlow(SequenceProcessor.java:125)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.processSequence(SequenceProcessor.java:63)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServiceBase.execute(LOSBusinessServiceBase.java:204)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServicesImpl.losRequestDecision(LOSBusinessServicesImpl.java:315)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServicesImpl$$FastClassByCGLIB$$157720c2.invoke(&lt;GENERATED&gt;)&lt;BR /&gt;
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)&lt;BR /&gt;
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)&lt;BR /&gt;
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)&lt;BR /&gt;
    at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)&lt;BR /&gt;
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)&lt;BR /&gt;
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServicesImpl$$EnhancerByCGLIB$$658d4a42.losRequestDecision(&lt;GENERATED&gt;)&lt;BR /&gt;
    at sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source)&lt;BR /&gt;
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)&lt;BR /&gt;
    at java.lang.reflect.Method.invoke(Method.java:508)&lt;BR /&gt;
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)&lt;BR /&gt;
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)&lt;BR /&gt;
    at com.sun.proxy.$Proxy52.losRequestDecision(Unknown Source)&lt;BR /&gt;
    at sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source)&lt;BR /&gt;
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)&lt;BR /&gt;
    at java.lang.reflect.Method.invoke(Method.java:508)&lt;BR /&gt;
    at org.codehaus.xfire.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:59)&lt;BR /&gt;
    at org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:320)&lt;BR /&gt;
    at org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)&lt;BR /&gt;
    at org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)&lt;BR /&gt;
    at org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)&lt;BR /&gt;
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)&lt;BR /&gt;
    at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)&lt;BR /&gt;
    at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)&lt;BR /&gt;
    at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:304)&lt;BR /&gt;
    at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)&lt;BR /&gt;
    at org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter.handleRequest(XFireServletControllerAdapter.java:67)&lt;BR /&gt;
    at org.codehaus.xfire.spring.remoting.XFireExporter.handleRequest(XFireExporter.java:48)&lt;BR /&gt;
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)&lt;BR /&gt;
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)&lt;BR /&gt;
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)&lt;BR /&gt;
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)&lt;BR /&gt;
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)&lt;BR /&gt;
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)&lt;BR /&gt;
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)&lt;BR /&gt;
    at com.metavante.dx.filter.ContextCleaningFilter.doFilter(ContextCleaningFilter.java:57)&lt;BR /&gt;
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)&lt;BR /&gt;
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:963)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)&lt;BR /&gt;
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)&lt;BR /&gt;
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)&lt;BR /&gt;
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)&lt;BR /&gt;
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)&lt;BR /&gt;
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)&lt;BR /&gt;
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)&lt;BR /&gt;
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)&lt;BR /&gt;
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)&lt;BR /&gt;
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)&lt;BR /&gt;
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)&lt;BR /&gt;
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)&lt;BR /&gt;
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)&lt;BR /&gt;
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)&lt;/GENERATED&gt;&lt;/GENERATED&gt;&lt;/INIT&gt;&lt;/P&gt;

&lt;P&gt;or&lt;BR /&gt;
ERROR [WebContainer : 9] [2018-11-29 19:09:38,620] log.UatErrorLogger - 4915e949-5603-460b-9b05-3dd0700d3077&lt;BR /&gt;
java.lang.NullPointerException&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.calcmgr.JavaCalcMgrContextImpl.runSelectedCalcs(JavaCalcMgrContextImpl.java:108)&lt;BR /&gt;
    at com.metavante.uat.rulescustomization.shared.calcmgr.JavaCalcMgrContextImpl.runCalc(JavaCalcMgrContextImpl.java:79)&lt;BR /&gt;
    at com.metavante.dx.services.common.utils.UATRulesHelper.executeRules(UATRulesHelper.java:333)&lt;BR /&gt;
    at com.metavante.dx.services.common.handlers.StepNavOffRulesHandler.excecuteStepNavOffRules(StepNavOffRulesHandler.java:108)&lt;BR /&gt;
    at com.metavante.dx.services.common.handlers.StepNavOffRulesBaseHandler.executeHandler(StepNavOffRulesBaseHandler.java:91)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.executeHandler(SequenceProcessor.java:159)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.executeWorkFlow(SequenceProcessor.java:125)&lt;BR /&gt;
    at com.metavante.dx.services.flow.processor.SequenceProcessor.processSequence(SequenceProcessor.java:63)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServiceBase.execute(LOSBusinessServiceBase.java:204)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServicesImpl.losEnterApplicants(LOSBusinessServicesImpl.java:263)&lt;BR /&gt;
    at com.metavante.eds.los.services.LOSBusinessServicesImpl$$FastClassByCGLIB$$157720c2.invoke(&lt;GENERATED&gt;)&lt;BR /&gt;
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)&lt;BR /&gt;
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)&lt;/GENERATED&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 01:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407494#M117692</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2018-11-30T01:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407495#M117693</link>
      <description>&lt;P&gt;this seems to work.  I will test some scenarios and update in the AM.  Thank you both! &lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 01:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407495#M117693</guid>
      <dc:creator>fisuser1</dc:creator>
      <dc:date>2018-11-30T01:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a regex that keeps only specific events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407496#M117694</link>
      <description>&lt;P&gt;In props.conf on Heavy Forwarder add the following:&lt;BR /&gt;
    [source::/var/log/messages]&lt;BR /&gt;
    TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;In the transforms.conf add the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = log\.UatErrorLogger\s\-\s\|ERROR\|
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 22:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-regex-that-keeps-only-specific-events/m-p/407496#M117694</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-02-27T22:00:22Z</dc:date>
    </item>
  </channel>
</rss>

