<?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: How to extract and create fields from event logs and table the results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142143#M39391</link>
    <description>&lt;P&gt;So the account name that you want to extract in the sample event is SAM-Account-Name? Also, Is it always preceded by /Provider-Type in all your events?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2014 05:50:41 GMT</pubDate>
    <dc:creator>sk314</dc:creator>
    <dc:date>2014-09-26T05:50:41Z</dc:date>
    <item>
      <title>How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142138#M39386</link>
      <description>&lt;P&gt;I'm running a search at the moment that lists users connecting to a vpn during out of work hours and I'm getting the right data but I just wanted to know if it's possible to sort the data displayed in the events log which do not have a field into a table. The search is something like this:&lt;/P&gt;

&lt;P&gt;host="xx" index=xx"  "Account-Name data_type=&lt;EM&gt;" &lt;BR /&gt;
"ip:source-ip"  "Fully-Qualifed-User-Name&lt;/EM&gt;"&lt;BR /&gt;
(date_hour&amp;gt;18 OR date_hour&amp;lt;7) | table date_wday, date_hour, date_minute, source_ip, | sort date_wday&lt;/P&gt;

&lt;P&gt;And an example event looks like:&lt;/P&gt;

&lt;P&gt;JOE BLOGSXXXxxx.xxx.xx.xx&lt;/P&gt;

&lt;P&gt;The data I want to get into a table is the Account Name and the date_hour and date_minute but the fields showing up are date_type, date_hour and so on but NO field for account name but the account name shows up in the event data.&lt;/P&gt;

&lt;P&gt;I know how to put the results into a table using fields but I'm wondering if its possible to get data from the event log that does not have a field and put it into a table?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142138#M39386</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2020-09-28T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142139#M39387</link>
      <description>&lt;P&gt;You need to extract fields during search. For more info: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/Addfieldsatsearchtime"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/Addfieldsatsearchtime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, If you could post sample event data, I'm sure we can help you with that too. &lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 03:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142139#M39387</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-26T03:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142140#M39388</link>
      <description>&lt;P&gt;Sorry about that, Forgot to put in some sample data. The data I get is:&lt;/P&gt;

&lt;P&gt;User-Name data_type="x" JOE BLOGS /User-Name  Client-IP-Address data_type="x"=xxx.xx.xx.xx /Client-IP-Address  Cisco-AV-Pair data_type="x" = ip:source-ip=xx.xx.xx.xx  /Cisco-AV-Pair&lt;/P&gt;

&lt;P&gt;I can get the source ip from the interesting fields but would like to also get the user name into a table&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142140#M39388</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2020-09-28T17:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142141#M39389</link>
      <description>&lt;P&gt;I still don't see the source_ip in your example data. If you could post data from multiple events, things will be clearer.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 03:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142141#M39389</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-26T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142142#M39390</link>
      <description>&lt;P&gt;Theres a few formatting issues but here's an example&lt;/P&gt;

&lt;P&gt;User-Name data_type="1"JOE BLOGS /User-Name Called-Station-Id data_type="1" xx.xx.xx.xx /Called-Station-Id   Calling-Station-Id data_type="1" xx.xx.xx.xx.xx /Calling-Station-Id  Client-IP-Address data_type="3" xx.xx.xx.xx.xx/Client-IP-Address  Cisco-AV-Pair data_type="1" ip:source-ip=xx.xx.xx.xx.xx.xx /Cisco-AV-Pair  Proxy-Policy-Name data_type="1" Use Windows authentication for all users /Proxy-Policy-Name  Provider-Type data_type="0" 1 /Provider-Type  SAM-Account-Name data_type="1" JOE BLOGS /SAM-Account-Name&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142142#M39390</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2020-09-28T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142143#M39391</link>
      <description>&lt;P&gt;So the account name that you want to extract in the sample event is SAM-Account-Name? Also, Is it always preceded by /Provider-Type in all your events?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 05:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142143#M39391</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-26T05:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142144#M39392</link>
      <description>&lt;P&gt;Yes, the SAM-Account-Name was what I wanted but I used the extract fields link you provided earlier and got it to work. &lt;/P&gt;

&lt;P&gt;I followed the link to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;  section and followed the steps and got the results I was after. I clicked on the extract fields option and put in the examples values I was looking for and after testing, it works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks sk314 for the quick responses and pointing me in the right direction. Much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 06:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142144#M39392</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2014-09-26T06:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142145#M39393</link>
      <description>&lt;P&gt;I found what I was after at  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;Used the extract fields option &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 06:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142145#M39393</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2014-09-26T06:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract and create fields from event logs and table the results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142146#M39394</link>
      <description>&lt;P&gt;oh well...you are welcome! splunk is very well documented!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 06:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-and-create-fields-from-event-logs-and-table-the/m-p/142146#M39394</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-26T06:48:29Z</dc:date>
    </item>
  </channel>
</rss>

