<?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: Extract Data with Field Definition in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128164#M10357</link>
    <description>&lt;P&gt;Well, one thing to try is to use &lt;CODE&gt;rex&lt;/CODE&gt; to extract the name as a field. If this works fine, you can then make it permanent by making the changes in props.conf (or via IFX).&lt;/P&gt;

&lt;P&gt;Consider these sample events;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"The quick brown fox-db jumps over the lazy dog"
"All work and no play makes Jack a dull boydb"
"Crane-db, the most powerful tool at the building site" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To extract the database-strings from these type of events, you might try;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex "(?&amp;lt;my_db&amp;gt;\S+db)" | table my_db
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the output would be;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_db
-----
fox-db
boydb
Crane-db
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please provide a few sample events if you want more qualified advice.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 20:44:55 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-11-04T20:44:55Z</dc:date>
    <item>
      <title>Extract Data with Field Definition</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128162#M10355</link>
      <description>&lt;P&gt;How would you extract particular info from raw data that is not defined by a field and then add it to a new field?&lt;/P&gt;

&lt;P&gt;The name of databases being sent to logs all end in *db but can appear randomly in the raw data. &lt;/P&gt;

&lt;P&gt;We want to pull them from raw data put them in column by themselves named "Database" with the corresponding raw data line that it appears in.&lt;/P&gt;

&lt;P&gt;95% of the databases named end in "*db". A few are one offs but when we can find the solution for the ones that end in *db hopefully the answer will come.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128162#M10355</guid>
      <dc:creator>ciscotek9</dc:creator>
      <dc:date>2013-11-04T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data with Field Definition</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128163#M10356</link>
      <description>&lt;P&gt;Can you post some examples of the logs, and point out what you mean by 'raw data line'?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128163#M10356</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-04T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data with Field Definition</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128164#M10357</link>
      <description>&lt;P&gt;Well, one thing to try is to use &lt;CODE&gt;rex&lt;/CODE&gt; to extract the name as a field. If this works fine, you can then make it permanent by making the changes in props.conf (or via IFX).&lt;/P&gt;

&lt;P&gt;Consider these sample events;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"The quick brown fox-db jumps over the lazy dog"
"All work and no play makes Jack a dull boydb"
"Crane-db, the most powerful tool at the building site" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To extract the database-strings from these type of events, you might try;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex "(?&amp;lt;my_db&amp;gt;\S+db)" | table my_db
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the output would be;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_db
-----
fox-db
boydb
Crane-db
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please provide a few sample events if you want more qualified advice.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extract-Data-with-Field-Definition/m-p/128164#M10357</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-11-04T20:44:55Z</dc:date>
    </item>
  </channel>
</rss>

