<?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 from log file into Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621225#M50999</link>
    <description>&lt;P&gt;Try head 2&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 11:52:12 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-11-17T11:52:12Z</dc:date>
    <item>
      <title>How to extract data from log file into dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621217#M50998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Below is an extract of the log data that I'd like to present in my dashboard. The purpose is to get a display of the total additions and total errors for each file - Activity.txt and Activit_XYZ.txt.&lt;/P&gt;
&lt;P&gt;11/4/2022 7:30:00 AM Processing Task t1. Searching for D:\Box\FIL\Import\Activity\*.txt&lt;BR /&gt;11/4/2022 7:30:00 AM Processing D:\Box\FIL\Import\Activity\&lt;STRONG&gt;Activity.txt&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Deleted D:\Box\FIL\Import\Activity\Activity.txt&lt;BR /&gt;11/4/2022 7:30:00 AM Total Attempted Add's: 7&lt;BR /&gt;11/4/2022 7:30:00 AM Total Additions: &lt;STRONG&gt;7&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Total Errors during Add:&lt;STRONG&gt; 0&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Last Transaction: 0&lt;BR /&gt;11/4/2022 7:30:00 AM Processing D:\Box\FIL\Import\Activity&lt;STRONG&gt;\Activity_XYZ.txt&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Deleted D:\Box\FIL\Import\Activity\Activity_XYZ.txt&lt;BR /&gt;11/4/2022 7:30:00 AM Total Attempted Add's: 17&lt;BR /&gt;11/4/2022 7:30:00 AM Total Additions: &lt;STRONG&gt;17&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Total Errors during Add: &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;BR /&gt;11/4/2022 7:30:00 AM Last Transaction: 0&lt;/P&gt;
&lt;P&gt;I've created a script but this only displays the first instance of Total Additions and Total Errors, could you help me to display the second instance of the data.&lt;/P&gt;
&lt;P&gt;To display Total Additions I use the script below;&lt;/P&gt;
&lt;P&gt;host="VMXXX12" source="D:\\Box\\FIL\\Logs\\Pbsa\\Import Activity.log" "Total Additions: " | rex "Total Additions: \s*(?&amp;lt;Total_Additions&amp;gt;.+)\s*" | fields Total_Additions | head 1 | eval range=if(Total_Additions=="0", "severe", "low")&lt;/P&gt;
&lt;P&gt;To display Total Errors I use the script below;&lt;/P&gt;
&lt;P&gt;host="VMXXX12" source="D:\\Box\\FIL\\Logs\\Pbsa\\Import Activity.log" "Total Errors during Add: " | rex "Total Errors during Add: \s*(?&amp;lt;Total_Error&amp;gt;.+)\s*" | fields Total_Error | head 1 | eval range=if(Total_Error=="0", "low", "severe")&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621217#M50998</guid>
      <dc:creator>jwilliams1</dc:creator>
      <dc:date>2022-11-17T14:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from log file into Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621225#M50999</link>
      <description>&lt;P&gt;Try head 2&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 11:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621225#M50999</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-17T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from log file into Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621231#M51000</link>
      <description>&lt;P&gt;Thank you, that worked!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 12:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-data-from-log-file-into-dashboard/m-p/621231#M51000</guid>
      <dc:creator>jwilliams1</dc:creator>
      <dc:date>2022-11-17T12:16:22Z</dc:date>
    </item>
  </channel>
</rss>

