<?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 get custom table from logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410657#M118522</link>
    <description>&lt;P&gt;What does a failed transfer or import look like?  You didn't provide a log line for those...&lt;/P&gt;

&lt;P&gt;The rest, or for anyone who wants to finish this answer after you provide that, might be along the lines of ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search ...
| rex "IISYS\s+(?&amp;lt;action&amp;gt;\w+) of (?&amp;lt;server&amp;gt;.*) (?&amp;lt;result&amp;gt;successfully|failed) transferred to (?&amp;lt;dest_server&amp;gt;.*)"
| rex "IISYS\s+(?&amp;lt;action&amp;gt;\w+) (?&amp;lt;result&amp;gt;successfully) ended on (?&amp;lt;server&amp;gt;.*) from export of (?&amp;lt;dest_server&amp;gt;.*) with exit code (?&amp;lt;exit_code&amp;gt;\d+)"
| eval in here to make result and exit_code all "OK" or "KO" as required
| timechart span=1d count by server, result_code.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Get us a sample of those log lines where it fails, so we know what to parse for the KO, and that should let us finish this for you.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Nov 2018 13:07:09 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2018-11-25T13:07:09Z</dc:date>
    <item>
      <title>how to get custom table from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410656#M118521</link>
      <description>&lt;P&gt;Hi, I am having trouble in my queries.&lt;BR /&gt;
My logs are as below:&lt;BR /&gt;
    &lt;STRONG&gt;18/11/2018 12:00:41 IISYS export of Server 1 successfully transferred to Server 2&lt;BR /&gt;
    17/11/2018 03:32:09 IISYS Import successfully ended on server 1  from export of server 2 with exit code 0&lt;BR /&gt;
    16/11/2018 21:05:57 IISYS export of Server 1 successfully transferred to Server 3&lt;BR /&gt;
    16/11/2018 21:06:15 IISYS export of Server 1 successfully transferred to Server 4&lt;BR /&gt;
    17/11/2018 03:31:32 IISYS Import successfully ended on server 1 from export of server 2 with exit code 0&lt;BR /&gt;
    17/11/2018 03:36:55 IISYS Import successfully ended on server 1 from export of Server 3 with exit code 0&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If imported then "OK" If not "KO" and for 3rd table, there is no export on sunday and no import processing on saturday.&lt;BR /&gt;
Now I have to make tables based on above logs as below attached screenshot.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6167iFF1873DC7E3DC993/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 07:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410656#M118521</guid>
      <dc:creator>dhirendra224761</dc:creator>
      <dc:date>2018-11-25T07:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get custom table from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410657#M118522</link>
      <description>&lt;P&gt;What does a failed transfer or import look like?  You didn't provide a log line for those...&lt;/P&gt;

&lt;P&gt;The rest, or for anyone who wants to finish this answer after you provide that, might be along the lines of ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search ...
| rex "IISYS\s+(?&amp;lt;action&amp;gt;\w+) of (?&amp;lt;server&amp;gt;.*) (?&amp;lt;result&amp;gt;successfully|failed) transferred to (?&amp;lt;dest_server&amp;gt;.*)"
| rex "IISYS\s+(?&amp;lt;action&amp;gt;\w+) (?&amp;lt;result&amp;gt;successfully) ended on (?&amp;lt;server&amp;gt;.*) from export of (?&amp;lt;dest_server&amp;gt;.*) with exit code (?&amp;lt;exit_code&amp;gt;\d+)"
| eval in here to make result and exit_code all "OK" or "KO" as required
| timechart span=1d count by server, result_code.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Get us a sample of those log lines where it fails, so we know what to parse for the KO, and that should let us finish this for you.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 13:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410657#M118522</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-11-25T13:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get custom table from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410658#M118523</link>
      <description>&lt;P&gt;Hi @rich7177,&lt;/P&gt;

&lt;P&gt;Thanks for your input. especially for below rex command&lt;/P&gt;

&lt;P&gt;| rex "IISYS\s+(?\w+) of (?.&lt;EM&gt;) (?successfully|failed) transferred to (?.&lt;/EM&gt;)"&lt;/P&gt;

&lt;P&gt;Let me try with this and let you know back again.&lt;BR /&gt;
Thanks Again&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 13:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410658#M118523</guid>
      <dc:creator>dhirendra224761</dc:creator>
      <dc:date>2018-11-25T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get custom table from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410659#M118524</link>
      <description>&lt;P&gt;Your data does not match your chart.  If you make them match, then maybe we can help you.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 18:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410659#M118524</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-11-25T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get custom table from logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410660#M118525</link>
      <description>&lt;P&gt;Hi @woodcock ... Sure I will corrct my logs as per the chart.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 19:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-custom-table-from-logs/m-p/410660#M118525</guid>
      <dc:creator>dhirendra224761</dc:creator>
      <dc:date>2018-11-25T19:36:28Z</dc:date>
    </item>
  </channel>
</rss>

