<?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: Indexed only Partial Contents of log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679620#M113569</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127036"&gt;@dhirendra761&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry no: the only ways to remove part of events are TRUNCATE or SEDCMD or transforms.&lt;/P&gt;&lt;P&gt;You can also remove the full event before indexing.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 16:29:42 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-03-05T16:29:42Z</dc:date>
    <item>
      <title>Indexed only Partial Contents of log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679609#M113562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are monitoring whole file in index. As file is in huge in size. which indexed all the content of files.&lt;/P&gt;&lt;P&gt;But we require only specific part of files to be indexed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAMPLE DATA:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"quiz": { "sport": { "q1": { "question": "Which one is correct team name in NBA?", "options": [ "New York Bulls", "Los Angeles Kings", "Golden State Warriros", "Huston Rocket" ], "answer": "Huston Rocket" } }, "maths": { "q1": { "question": "5 + 7 = ?", "options": [ "10", "11", "12", "13" ], "answer": "12" }, "q2": { "question": "12 - 8 = ?", "options": [ "1", "2", "3", "4" ], "answer": "4" } } } }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample SPL:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test" "answer"|&amp;lt;further spl&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;How to indexed partial data of file for &lt;STRONG&gt;answer&lt;/STRONG&gt; string, Not to be indexed whole file.&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 15:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679609#M113562</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2024-03-05T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed only Partial Contents of log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679614#M113565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127036"&gt;@dhirendra761&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's possible to truncate a log event defining the lenght of each event, but, having a json format, in this way you loose the json format and the choice to use spath command to extract fields, so you have to manually extract all the fields, so I hint to avoid.&lt;/P&gt;&lt;P&gt;Maybe (I'm not sure) it's possible to identify a part of the log event that can be removed (using the SEDCMD command in props.conf) maintaining the json structure, but it isn't so easy!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679614#M113565</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-05T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed only Partial Contents of log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679619#M113568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for responce. In fact, file content are mixed-syntax. some of lines are json format and log-info-type format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-02-08 | 23.118 | &amp;lt;hostname&amp;gt; | DEBUG | QueryForSuccess&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;we run the specify content with different search string . I agree defining&amp;nbsp;&lt;SPAN&gt;SEDCMD&amp;nbsp;is not easy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any other way where we can prevent unused data and indexed only wanted data.?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679619#M113568</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2024-03-05T16:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed only Partial Contents of log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679620#M113569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127036"&gt;@dhirendra761&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry no: the only ways to remove part of events are TRUNCATE or SEDCMD or transforms.&lt;/P&gt;&lt;P&gt;You can also remove the full event before indexing.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-only-Partial-Contents-of-log-file/m-p/679620#M113569</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-05T16:29:42Z</dc:date>
    </item>
  </channel>
</rss>

