<?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: Need help defining fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90690#M23298</link>
    <description>&lt;P&gt;Good to know they can contain spaces. I think my problem is getting the comma to delimit correctly. If I enclose the entire example message above with # in the field picker, it finds no results. If I don't add the #, it wants to add two fields, before and after the comma.&lt;/P&gt;

&lt;P&gt;Yes, they would be the same or different in comparison to previous events for that host.&lt;/P&gt;

&lt;P&gt;Thanks for the reply!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2011 17:17:45 GMT</pubDate>
    <dc:creator>johnnybravo</dc:creator>
    <dc:date>2011-10-12T17:17:45Z</dc:date>
    <item>
      <title>Need help defining fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90687#M23295</link>
      <description>&lt;P&gt;I want to use dedup to reduce occurrences of the same event like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%IP-4-DUPADDR: Duplicate address 1.1.1.1 on Vlan100, sourced by 0000.5ee5.deed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However if the IP address, VLAN, or MAC address is different then I don't want to dedup it. I tried defining the whole block of text as a field, but that doesn't appear to work. It seems like a field cannot include spaces.&lt;/P&gt;

&lt;P&gt;How do I go about defining this so that if the message is of type IP-4-DUPADDR and the address info is the same, dedup it?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90687#M23295</guid>
      <dc:creator>johnnybravo</dc:creator>
      <dc:date>2011-10-12T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help defining fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90688#M23296</link>
      <description>&lt;P&gt;Fields can absolutely contain spaces! There is no such limitation.&lt;/P&gt;

&lt;P&gt;When you say the fields are "the same" or "different", what is that in comparison to, the previous event? Anyway, you can either extract the whole string like you say, or you can dedup based on all fields.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90688#M23296</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-10-12T16:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help defining fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90689#M23297</link>
      <description>&lt;P&gt;I might approach it similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP-4-DUPADDR 
| rex "Duplicate address (?&amp;lt;ipaddr&amp;gt;[^\s]+) on (?&amp;lt;vlan&amp;gt;[^\s]+) sourced by (?&amp;lt;macaddr&amp;gt;[^\s]+)
| dedup 1 vlan,ipaddr,macaddr
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90689#M23297</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-10-12T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help defining fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90690#M23298</link>
      <description>&lt;P&gt;Good to know they can contain spaces. I think my problem is getting the comma to delimit correctly. If I enclose the entire example message above with # in the field picker, it finds no results. If I don't add the #, it wants to add two fields, before and after the comma.&lt;/P&gt;

&lt;P&gt;Yes, they would be the same or different in comparison to previous events for that host.&lt;/P&gt;

&lt;P&gt;Thanks for the reply!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90690#M23298</guid>
      <dc:creator>johnnybravo</dc:creator>
      <dc:date>2011-10-12T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help defining fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90691#M23299</link>
      <description>&lt;P&gt;Thank you, that works!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 17:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-defining-fields/m-p/90691#M23299</guid>
      <dc:creator>johnnybravo</dc:creator>
      <dc:date>2011-10-12T17:47:57Z</dc:date>
    </item>
  </channel>
</rss>

