<?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: different formats - same field in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148673#M3283</link>
    <description>&lt;P&gt;Just create your field extraction as usual. If you require any help with that we need to see a sample from your log. You can create several conditions for field extractions so two different formats is not a problem&lt;/P&gt;

&lt;P&gt;about the stat you want:   stats count by user&lt;/P&gt;

&lt;P&gt;Edit:&lt;BR /&gt;
Try this field extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}\:\d{2}\s\-\s\w+\s\-\s\[(\d+\.){3}\d+\]\s(?P&amp;lt;user&amp;gt;[^\(]+)\(
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Feb 2014 02:06:01 GMT</pubDate>
    <dc:creator>asimagu</dc:creator>
    <dc:date>2014-02-13T02:06:01Z</dc:date>
    <item>
      <title>different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148672#M3282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a syslog feed from two servers, that use a different format.  The first feed has a nice key-value pair, and the field (user)  is automatically created by Splunk.  The second one has the field value, but I need to create the field (which I can do).  How can I report on both of them as the "user" field and get a count of the number of times for each value? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 01:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148672#M3282</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-02-13T01:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148673#M3283</link>
      <description>&lt;P&gt;Just create your field extraction as usual. If you require any help with that we need to see a sample from your log. You can create several conditions for field extractions so two different formats is not a problem&lt;/P&gt;

&lt;P&gt;about the stat you want:   stats count by user&lt;/P&gt;

&lt;P&gt;Edit:&lt;BR /&gt;
Try this field extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}\:\d{2}\s\-\s\w+\s\-\s\[(\d+\.){3}\d+\]\s(?P&amp;lt;user&amp;gt;[^\(]+)\(
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148673#M3283</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2014-02-13T02:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148674#M3284</link>
      <description>&lt;P&gt;OK. Thanks.&lt;/P&gt;

&lt;P&gt;So, the first one is pre-populated by Splunk, as the message has key-value pairs:&lt;/P&gt;

&lt;P&gt;2014-02-12T20:56:39.122238-05:00 myhost Juniper: id=firewall time="2014-02-12 20:56:39" pri=6 fw=1.2.3.4 vpn=ive user=a123456 realm="Siteminder"&lt;/P&gt;

&lt;P&gt;The second one does not have key value pairs:&lt;/P&gt;

&lt;P&gt;2014-02-12T17:28:38.796343-05:00 myhost1 Juniper: 2014-02-12 17:28:39 - ive - [9.8.7.6] A666666(Siteminder)[TSO - Web Access (LAN)] - WebRequest completed&lt;/P&gt;

&lt;P&gt;So, I need both the a123456 and the A66666 values.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148674#M3284</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-02-13T02:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148675#M3285</link>
      <description>&lt;P&gt;just edited the answer above, try that and let me know how it goes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148675#M3285</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2014-02-13T02:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148676#M3286</link>
      <description>&lt;P&gt;That would go in the search?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148676#M3286</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-02-13T02:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148677#M3287</link>
      <description>&lt;P&gt;sorry, I assumed you knew how to create a field extraction. There are two ways: using the Manager or doing an inline extraction&lt;/P&gt;

&lt;P&gt;Inline extraction, you need to pipe this in the search:&lt;BR /&gt;
| rex field=_raw "&amp;lt;the regular expression from above"&lt;/P&gt;

&lt;P&gt;Using the manager:&lt;BR /&gt;
Create field extractions -&amp;gt; New Extraction -&amp;gt; Complete the form with the sourcetype and the regex from above&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148677#M3287</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2014-02-13T02:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148678#M3288</link>
      <description>&lt;P&gt;Oooooooh, never done that one.  Thanks!  It works! Spend too much time on "admining"  the systems and not enough time doing searches!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 03:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148678#M3288</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2014-02-13T03:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: different formats - same field</title>
      <link>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148679#M3289</link>
      <description>&lt;P&gt;glad it worked &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; could you validate the answer then?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 06:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/different-formats-same-field/m-p/148679#M3289</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2014-02-13T06:11:41Z</dc:date>
    </item>
  </channel>
</rss>

