<?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 combining 2 searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166293#M186109</link>
    <description>&lt;P&gt;Here is a snippet of our logs, i have scrubed some of the data&lt;BR /&gt;
2014-05-16 11:01:51,065 INFO  [ foo:10598 aaaJQk5ZSIo446szyJfyu ENC11945241] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = foo/2925/11945241&lt;BR /&gt;
2014-05-16 11:01:25,165 INFO  [ ] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = null/27155/11951016&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2014 16:17:55 GMT</pubDate>
    <dc:creator>apalen</dc:creator>
    <dc:date>2014-05-16T16:17:55Z</dc:date>
    <item>
      <title>Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166288#M186104</link>
      <description>&lt;P&gt;I am attempting to do this search:&lt;BR /&gt;
host = pesweb* "payment via manually entered card" | stats count by users&lt;BR /&gt;
My data looks like:&lt;BR /&gt;
2014-05-15 13:20:08,728 INFO [resin-port-foo port &lt;STRONG&gt;pdeur&lt;/STRONG&gt;: foo port  invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java) - payment via manually entered card: user/amt/invoice = &lt;STRONG&gt;pdeur&lt;/STRONG&gt;/foo123&lt;/P&gt;

&lt;P&gt;The bold is the user id associated to these event, but when i attempt the above search it doesn't detect that as a user id.  &lt;/P&gt;

&lt;P&gt;My questions is how may i make it do so? Should i use some type of field extract?  My end gold is to be able to see which user's are doing this method and allow our customer support team to reach out to these customers and see why they are entering this information manually.&lt;/P&gt;

&lt;P&gt;Thanks in advance splunk community!&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 17:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166288#M186104</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-15T17:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166289#M186105</link>
      <description>&lt;P&gt;You will have to create field extract/use rex command to retrieve field 'user', as its not in Splunk's standard format (key-value pair).&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 17:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166289#M186105</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-15T17:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166290#M186106</link>
      <description>&lt;P&gt;I was afraid of this.  My regex is pretty weak. If anyone in the community is a regex pro, with a few minutes i would greatly appreciated any directions on this regex to produce the results I'm looking for.&lt;/P&gt;

&lt;P&gt;As always thanks in advance splunk community!&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 17:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166290#M186106</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-15T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166291#M186107</link>
      <description>&lt;P&gt;You can use Splunk's inbuild Field Extractor for the same. (In event view of the data, click on small triangle on the left of event [Event options menu] and select 'Extract fields'. provide example values and click on generate. You can save the field extraction from there as well)&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 18:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166291#M186107</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-15T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166292#M186108</link>
      <description>&lt;P&gt;Or provide some more sample events (to cover all possibilities) and Splunkers can help you will regex.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2014 18:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166292#M186108</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-15T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166293#M186109</link>
      <description>&lt;P&gt;Here is a snippet of our logs, i have scrubed some of the data&lt;BR /&gt;
2014-05-16 11:01:51,065 INFO  [ foo:10598 aaaJQk5ZSIo446szyJfyu ENC11945241] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = foo/2925/11945241&lt;BR /&gt;
2014-05-16 11:01:25,165 INFO  [ ] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = null/27155/11951016&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 16:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166293#M186109</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-16T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166294#M186110</link>
      <description>&lt;P&gt;[foo123:10095 aaaZ5kH3likxE8fFvwfyu ENC11950841] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = foo123/2681/11950841&lt;/P&gt;

&lt;P&gt;[foo:2513 aaaVBhyhrcPFc5cFUGfyu ENC11950843] invoice.AcquireInvoiceLifeCycleManager (AcquireInvoiceLifeCycleManager.java:1671) - payment via manually entered card: user/amt/invoice = foo/5000/11950843&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 16:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166294#M186110</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-16T16:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166295#M186111</link>
      <description>&lt;P&gt;user id's can be a combination of alphanumeric values between 3 and 10 digits.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 16:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166295#M186111</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-16T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166296#M186112</link>
      <description>&lt;P&gt;And the user Id in these logs is "11950843","11950841" etc OR "ENC11950843","ENC11950841"?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 18:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166296#M186112</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-16T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166297#M186113</link>
      <description>&lt;P&gt;Hi apalen,&lt;/P&gt;

&lt;P&gt;based on your provided examples, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search here | rex field="_raw" "user/amt/invoice\s=\s(?&amp;lt;myUser&amp;gt;[\w\d]{3,10})" | table myUser
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will create a new field named &lt;CODE&gt;myUser&lt;/CODE&gt; if this matches your needs you can use this as &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Knowledge/Addfieldsatsearchtime"&gt;automatic field extraction&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 18:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166297#M186113</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-16T18:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166298#M186114</link>
      <description>&lt;P&gt;oh sorry, the user id's are tag at the beginning and end.  &lt;/P&gt;

&lt;P&gt;foo&lt;BR /&gt;
foo123&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 18:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166298#M186114</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-16T18:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help combining 2 searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166299#M186115</link>
      <description>&lt;P&gt;Thanks MuS,  I will try this!&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 18:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-combining-2-searches/m-p/166299#M186115</guid>
      <dc:creator>apalen</dc:creator>
      <dc:date>2014-05-16T18:18:01Z</dc:date>
    </item>
  </channel>
</rss>

