<?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: data format... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57310#M179936</link>
    <description>&lt;P&gt;Well, I tried it, and it worked. From one of the events, click the little blue 'down' arrow next to the timestamp, select 'Extract Fields'. In the box type:&lt;/P&gt;

&lt;P&gt;123.85.61.82,domain,216.152.173.2,51486&lt;/P&gt;

&lt;P&gt;and click 'generate'. I didn't to through with saving the extractions, but the IFX correctly found all the IPs and ports.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2012 06:26:30 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-09-13T06:26:30Z</dc:date>
    <item>
      <title>data format...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57306#M179932</link>
      <description>&lt;P&gt;I'm looking at importing TCPDUMP data into Splunk purely for the graph functions and for the TOP functions available in searches.&lt;/P&gt;

&lt;P&gt;So the TCPDUMP sample looks like:&lt;/P&gt;

&lt;P&gt;2012-09-10 18:23:48.079340 IP 123.85.61.82.domain &amp;gt; 216.152.173.2.51486: 36174- 0/6/3 (613)&lt;/P&gt;

&lt;P&gt;2012-09-10 18:23:48.079345 IP 123.46.12.230.domain &amp;gt; 220.181.125.132.domain: 30501- 0/6/3 (619)&lt;/P&gt;

&lt;P&gt;2012-09-10 18:23:48.079355 IP 192.52.178.30.domain &amp;gt; 193.11.113.3.56453: 33190- 0/6/3 (598)&lt;/P&gt;

&lt;P&gt;2012-09-10 18:23:48.079361 IP 201.31.164.50.domain &amp;gt; 201.10.132.5.56571: 20625- 0/2/2 (107)&lt;/P&gt;

&lt;P&gt;2012-09-10 18:23:48.079366 IP 192.42.93.30.domain &amp;gt; 64.105.97.90.47718: 25511- 0/6/4 (634)&lt;/P&gt;

&lt;P&gt;Here's my question: &lt;/P&gt;

&lt;P&gt;I want to run top reports on the source and destination IP's listed above.  What's the best way to strip off the extensions at the end of the address (.domain and :33190)?&lt;/P&gt;

&lt;P&gt;Is this  good utilization of Splunk for my data?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 02:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57306#M179932</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2012-09-12T02:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: data format...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57307#M179933</link>
      <description>&lt;P&gt;I was about to answer, but seeing as you've been on splunkbase for quite a while, it would be beneficial to know first what the issue is here. Do you want to know how to perform field extractions?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 05:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57307#M179933</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-12T05:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: data format...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57308#M179934</link>
      <description>&lt;P&gt;As Ayn says; is there a particular problem other than just extracting the fields? From the look of your sample events, the format is;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timestamp src_ip.src_port dest_ip.dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2012-09-10 18:23:48.079340 IP 123.85.61.82.domain &amp;gt; 216.152.173.2.51486: 36174- 0/6/3 (613)&lt;/P&gt;

&lt;P&gt;If the format will always stay like this, i.e. not change direction (ip.port &amp;lt; ip.port), you can easily try out extractions with &lt;CODE&gt;rex&lt;/CODE&gt; before making the &lt;CODE&gt;props.conf&lt;/CODE&gt; changes.&lt;/P&gt;

&lt;P&gt;Something like this should do, I think.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\s+IP\s+(?&amp;lt;src_ip&amp;gt;\d+\.\d+\.\d+\.\d+)\.(?&amp;lt;src_port&amp;gt;\S+)\s+&amp;gt;\s+(?&amp;lt;dest_ip&amp;gt;\d+\.\d+\.\d+\.\d+)\.(?&amp;lt;dest_port&amp;gt;[a-z0-9]+):\s+"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think that IFX will have no trouble doing it for you either..&lt;/P&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 09:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57308#M179934</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-12T09:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: data format...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57309#M179935</link>
      <description>&lt;P&gt;The IFX does not recognize this field.  Is that normal?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 23:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57309#M179935</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2012-09-12T23:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: data format...</title>
      <link>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57310#M179936</link>
      <description>&lt;P&gt;Well, I tried it, and it worked. From one of the events, click the little blue 'down' arrow next to the timestamp, select 'Extract Fields'. In the box type:&lt;/P&gt;

&lt;P&gt;123.85.61.82,domain,216.152.173.2,51486&lt;/P&gt;

&lt;P&gt;and click 'generate'. I didn't to through with saving the extractions, but the IFX correctly found all the IPs and ports.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 06:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/data-format/m-p/57310#M179936</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-13T06:26:30Z</dc:date>
    </item>
  </channel>
</rss>

